You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2015/10/17 15:36:05 UTC
[jira] [Closed] (CB-9795) allowEdit not work in
cordova-plugin-camera
[ https://issues.apache.org/jira/browse/CB-9795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jcesarmobile closed CB-9795.
----------------------------
Resolution: Duplicate
Assignee: jcesarmobile
It's duplicated and it's been fixed on this pull request
https://github.com/apache/cordova-plugin-camera/pull/120
> allowEdit not work in cordova-plugin-camera
> --------------------------------------------
>
> Key: CB-9795
> URL: https://issues.apache.org/jira/browse/CB-9795
> Project: Apache Cordova
> Issue Type: Bug
> Environment: cordova-plugin-camera@1.2.0
> android
> Reporter: gao
> Assignee: jcesarmobile
> Labels: allowEdit, camera
>
> option = {quality: 30,sourceType: Camera.PictureSourceType.CAMERA,destinationType: Camera.DestinationType.FILE_URI,encodingType: Camera.EncodingType.JPEG,mediaType: Camera.MediaType.PICTURE};
> take picture > modify picture > return the url
> you will see the url returned is the piture not midify
> and i found CameraLauncher.java line 445
> bitmap = getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toString()));
> modify it:
> if(allowEdit && croppedUri != null){
> bitmap = getScaledBitmap(FileHelper.stripFileProtocol(croppedUri.toString()));
> }else{
> bitmap = getScaledBitmap(FileHelper.stripFileProtocol(imageUri.toString()));
> }
> 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