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

jose commented on CB-10936:
---------------------------

any news on this issue? many thank

> correctOrientation not working when picking up from library on certain devices
> ------------------------------------------------------------------------------
>
>                 Key: CB-10936
>                 URL: https://issues.apache.org/jira/browse/CB-10936
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 2.1.0, 2.1.1
>            Reporter: jose
>              Labels: android
>
> When using for example: Samsung S6 Edge the correctOrientation isn't working 
> when using the following properties:
> {code}
> var options = {
>       sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
>       destinationType: Camera.DestinationType.DATA_URL
>       mediaType: Camera.MediaType.PICTURE,
>       allowEdit: false,
>       encodingType: Camera.EncodingType.JPEG,
>       targetWidth: 900,
>       targetHeight: 900,
>       quality: 80,
>       saveToPhotoAlbum: true,
>       correctOrientation: true
>     };
> {code}
> *This issue happens only on certain devices, it works fine for the majority, 
> I've tested it in 7 devices*
> if the image is retrieved from the library without any transformation and by 
> the file url it is fine:
> {code}
> var options = {
>       sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
>       destinationType: Camera.DestinationType.FILE_URI
>       mediaType: Camera.MediaType.PICTURE,
>       allowEdit: false,
>       encodingType: Camera.EncodingType.JPEG,
>       saveToPhotoAlbum: true,
>       correctOrientation: true
>     };
> {code}
> when using *Camera.DestinationType.FILE_URI* even if targetWidth and 
> targetHeight are set it completely ignores it. It returns the path to the 
> full image



--
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