[ 
https://issues.apache.org/jira/browse/CB-4078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14962382#comment-14962382
 ] 

Janet B edited comment on CB-4078 at 10/18/15 1:53 PM:
-------------------------------------------------------

It works fine in iOS (confirmed for 8.4+), but not for Android. Photos from the 
library are not properly rotated, as the ticket details explain. To be more 
specific, photos that were taken by the camera in portait mode (have a 90° 
orientation) are rotated to the left 90 degrees when uploaded by the plugin.


was (Author: jbean):
It works fine in iOS (confirmed for 8.4+), but not for Android. Photos from the 
library are not properly rotated, as the ticket details explain. To be more 
specific, photos that were taken by the camera in portait mode are rotated to 
the left 90 degrees when uploaded by the plugin.

> correctOrientation is not working on camera.getPicture for PHOTOLIBRARY 
> (works with Camera)
> -------------------------------------------------------------------------------------------
>
>                 Key: CB-4078
>                 URL: https://issues.apache.org/jira/browse/CB-4078
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 2.9.0
>         Environment: iOS
>            Reporter: aligo
>            Priority: Critical
>              Labels: Android, Triaged, iOS
>
> Hi
> I use cameraOptions below to get the FILE_URI and to display in <img> tag:
> {code}
>       correctOrientation: true
>       quality: 50
>       encodingType: Camera.EncodingType.JPEG
>       targetWidth: 300
>       targetHeight: 300
>       destinationType: window.navigator.camera.DestinationType.FILE_URI
>       sourceType: window.navigator.camera.PictureSourceType.PHOTOLIBRARY
> {code}
> But the picture displayed within wrong orientation.
> Updated:
> I try use window.navigator.camera.PictureSourceType.CAMERA in sourceType, and 
> everything work as expected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to