matthew Wall created CB-9012: -------------------------------- Summary: FILE_URI always displays as landscape Key: CB-9012 URL: https://issues.apache.org/jira/browse/CB-9012 Project: Apache Cordova Issue Type: Bug Components: Plugin Camera Affects Versions: 3.6.0 Environment: Developing on MAC running Android studio (1.2) Cordova 5.0.0 Reporter: matthew Wall
When I capture an image using the camera plugin (on Android) it always renders the image in landscape made. navigator.camera.getPicture(onPhotoURISuccess, onFail, { correctOrientation: true, quality: 70, allowEdit: false, destinationType: destinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, saveToPhotoAlbum: false, encodingType: Camera.EncodingType.JPG, targetWidth: 1500, targetHeight: 1500, }); and within the function onPhotoURISuccess(imageURI) { $(img).attr("src", imageURI); } the image is always rendered in landscape. Using correctOrientation: true has no effect. This happens on Samsung devices running 4.4 and Sony Xperia phone running 4.4.4 but also in the AVD nexus5 running 5.0.1 but displays correctly on a device running 5.1 I've reduced file size down to next to nothing and it still does the same thing. The app itself is set to portrait mode only. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org