You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Richard B Knoll (JIRA)" <ji...@apache.org> on 2016/02/22 23:12:18 UTC

[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI

    [ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157815#comment-15157815 ] 

Richard B Knoll commented on CB-10064:
--------------------------------------

Sorry for the (very) long response time; I've been working on other Cordova things. I can't reproduce this with those camera options. I have a hunch this is device specific, so I'm going to drop the priority on this JIRA. If someone else has an HTC One M8 it would be great if you could try and reproduce this.

> 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, triaged
>         Attachments: Picture_taken_crop_finish.png, Picture_taken_crop_start.png, Picture_taken_edit_start.png, log_error.txt, two_images.png
>
>
> 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