You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jose (JIRA)" <ji...@apache.org> on 2016/03/23 11:05:25 UTC
[jira] [Created] (CB-10936) correctOrientation not working when
picking up from library on certain devices
jose created CB-10936:
-------------------------
Summary: 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
Affects Versions: 2.1.0, 2.1.1
Reporter: jose
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>
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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org