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 7B6B218AB2 for ; Fri, 16 Oct 2015 00:42:05 +0000 (UTC) Received: (qmail 73584 invoked by uid 500); 16 Oct 2015 00:42:05 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 73538 invoked by uid 500); 16 Oct 2015 00:42:05 -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 73519 invoked by uid 99); 16 Oct 2015 00:42:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 00:42:05 +0000 Date: Fri, 16 Oct 2015 00:42:05 +0000 (UTC) From: "Richard B Knoll (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-9796) allowEdit not work in plugin camera MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9796?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel ] Richard B Knoll updated CB-9796: -------------------------------- Description:=20 {code:javascript} option =3D {quality: 30,sourceType: Camera.PictureSourceType.CAMERA,destina= tionType: Camera.DestinationType.FILE_URI,encodingType: Camera.EncodingType= .JPEG,mediaType: Camera.MediaType.PICTURE}; {code} take picture > modify picture > return the url the url returned is the piture not midify and i found CameraLauncher.java line 445=EF=BC=9A {code:java} bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toString()= )); {code} modify it: {code:java} if(allowEdit && croppedUri !=3D null){ bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(croppedUri.toSt= ring())); }else{ bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toStri= ng())); } {code} bug fixed was: option =3D {quality: 30,sourceType: Camera.PictureSourceType.CAMERA,destina= tionType: Camera.DestinationType.FILE_URI,encodingType: Camera.EncodingType= .JPEG,mediaType: Camera.MediaType.PICTURE}; take picture > modify picture > return the url the url returned is the piture not midify and i found CameraLauncher.java line 445=EF=BC=9A bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toString()= )); modify it: if(allowEdit && croppedUri !=3D null){ bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(croppedUri.toSt= ring())); }else{ bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toStri= ng())); } bug fixed > allowEdit not work in plugin camera > ----------------------------------- > > Key: CB-9796 > URL: https://issues.apache.org/jira/browse/CB-9796 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Affects Versions: 1.2.0 > Environment: android > Reporter: gao > Labels: allowEdit > > {code:javascript} > option =3D {quality: 30,sourceType: Camera.PictureSourceType.CAMERA,desti= nationType: Camera.DestinationType.FILE_URI,encodingType: Camera.EncodingTy= pe.JPEG,mediaType: Camera.MediaType.PICTURE}; > {code} > take picture > modify picture > return the url > the url returned is the piture not midify > and i found CameraLauncher.java line 445=EF=BC=9A > {code:java} > bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toString= ())); > {code} > modify it: > {code:java} > if(allowEdit && croppedUri !=3D null){ > bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(croppedUri.to= String())); > }else{ > bitmap =3D getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toSt= ring())); > } > {code} > bug fixed -- 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