You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "graphefruit (JIRA)" <ji...@apache.org> on 2015/11/23 15:42:11 UTC

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

     [ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

graphefruit updated CB-10064:
-----------------------------
    Description: 
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".
{quote}
 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
                });
{quote}
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 
{quote}
function onSuccess(_originalURI,_editedURI)
{

}
{quote}
Thanks & Greetings
Graphefruit

  was:
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".
 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
                });

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 
function onSuccess(_originalURI,_editedURI)
{

}

Thanks & Greetings
Graphefruit


> 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: camera, edit
>
> 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".
> {quote}
>  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
>                 });
> {quote}
> 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 
> {quote}
> function onSuccess(_originalURI,_editedURI)
> {
> }
> {quote}
> 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