Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8313518208 for ; Wed, 23 Mar 2016 10:05:26 +0000 (UTC) Received: (qmail 50886 invoked by uid 500); 23 Mar 2016 10:05:26 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 50626 invoked by uid 500); 23 Mar 2016 10:05:26 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 50237 invoked by uid 99); 23 Mar 2016 10:05:26 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2016 10:05:26 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A8BC22C1F62 for ; Wed, 23 Mar 2016 10:05:25 +0000 (UTC) Date: Wed, 23 Mar 2016 10:05:25 +0000 (UTC) From: "jose (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-10936) correctOrientation not working when picking up from library on certain devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jose updated CB-10936: ---------------------- Description: 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 was: When using for example: Samsung S6 Edge the correctOrientation isn't working when using the following properties: 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 }; if the image is retrieved from the library without any transformation and by the file url it is fine: 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 }; 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 > 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