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 01EF211B9A for ; Mon, 5 May 2014 21:45:36 +0000 (UTC) Received: (qmail 56671 invoked by uid 500); 5 May 2014 21:45:28 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 56509 invoked by uid 500); 5 May 2014 21:45:26 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 56352 invoked by uid 99); 5 May 2014 21:45:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 21:45:23 +0000 Date: Mon, 5 May 2014 21:45:23 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-6190) navigator.camera.getPicture ignores quality parameter when width/height are not specified 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-6190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-6190: --------------------------------- Component/s: (was: iOS) > navigator.camera.getPicture ignores quality parameter when width/height are not specified > ----------------------------------------------------------------------------------------- > > Key: CB-6190 > URL: https://issues.apache.org/jira/browse/CB-6190 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Reporter: Youval Bronicki > > When calling navigator.camera.getPicture with default options except for quality, the requested quality is ignored. > There is a simple work-around, replacing lines 314-315 in CDVCamera.m, : > {quote} > // use image unedited as requested , don't resize > data = UIImageJPEGRepresentation(returnedImage, 1.0); > {quote} > with: > {quote} > // use image unedited as requested , don't resize (with compression) > data = UIImageJPEGRepresentation(returnedImage, cameraPicker.quality / 100.0f); > {quote} > However, the code hints there may be some (undocumented?) intention to minimize processing in some situations, so this may not be a full fix. -- This message was sent by Atlassian JIRA (v6.2#6252)