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 76FB318AB9 for ; Tue, 1 Dec 2015 17:29:46 +0000 (UTC) Received: (qmail 44530 invoked by uid 500); 1 Dec 2015 17:29:11 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 44502 invoked by uid 500); 1 Dec 2015 17:29:11 -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 44472 invoked by uid 99); 1 Dec 2015 17:29:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 17:29:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0E71F2C1F70 for ; Tue, 1 Dec 2015 17:29:11 +0000 (UTC) Date: Tue, 1 Dec 2015 17:29:11 +0000 (UTC) From: "Richard B Knoll (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI 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-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15034127#comment-15034127 ] Richard B Knoll commented on CB-10064: -------------------------------------- What version of android is the device running? > Camera.getPicture - Wrong FileURI > --------------------------------- > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Affects Versions: 5.3.3 > Environment: Android 6.0 > Reporter: graphefruit > Labels: android > > Hello! > if you take a picture with cordova and need to edit the picture, you won't get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the edited image content and another image is created and saved with the edited image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- 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