Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5117018A9B for ; Tue, 10 Nov 2015 20:06:37 +0000 (UTC) Received: (qmail 93850 invoked by uid 500); 10 Nov 2015 20:06:37 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 93807 invoked by uid 500); 10 Nov 2015 20:06:37 -0000 Mailing-List: contact dev-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 dev@cordova.apache.org Received: (qmail 93791 invoked by uid 99); 10 Nov 2015 20:06:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2015 20:06:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7166AE03D0; Tue, 10 Nov 2015 20:06:36 +0000 (UTC) From: riknoll To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org Message-ID: Subject: [GitHub] cordova-plugin-camera pull request: CB-9169 android: Fixed filetyp... Content-Type: text/plain Date: Tue, 10 Nov 2015 20:06:36 +0000 (UTC) GitHub user riknoll opened a pull request: https://github.com/apache/cordova-plugin-camera/pull/136 CB-9169 android: Fixed filetype for uncompressed images and added quirk When trying to get uncompressed images on Android using camera options like these: ``` javascript { destinationType : Camera.DestinationType.FILE_URL, sourceType : Camera.PictureSourceType.CAMERA, encodingType: Camera.EncodingType.PNG, quality: 100, saveToPhotoAlbum: true } ``` the plugin will return a JPEG file with a .png filename. This pull request fixes the filename and documents the Android quirk that `encodingType` is ignored by the plugin on Android for uncompressed files. It currently does not make sense to actually provide PNG support in this case, because native camera apps return JPEG files and so converting to PNG does not improve quality, it just hurts performance. Same can be said for the gallery which just returns the selected file. You can merge this pull request into a Git repository by running: $ git pull https://github.com/MSOpenTech/cordova-plugin-camera CB-9169 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-camera/pull/136.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #136 ---- commit 891b4a2d089c9deb2e4788dd5c12dff7267d38cc Author: riknoll Date: 2015-11-10T19:50:42Z CB-9169 android: Fixed filetype for uncompressed images and added quirk ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org