diff options
-rw-r--r-- | src/js/views/photo.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/js/views/photo.js b/src/js/views/photo.js index be4c1e2..f24207e 100644 --- a/src/js/views/photo.js +++ b/src/js/views/photo.js @@ -30,7 +30,10 @@ getOptions: function(isFromAlbum) { var options = { destinationType: Camera.DestinationType.FILE_URI, - sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY + sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY, + correctOrientation: true, + targetHeight: 768, + targetWidth: 1024 }; if ( ! isFromAlbum ) { @@ -41,7 +44,6 @@ // this helps with out of memory errors on iPhones but not on Android it seems if ( ! FMS.isAndroid ) { options.quality = 49; - options.correctOrientation = true; } return options; |