You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ronny Schleicher (JIRA)" <ji...@apache.org> on 2013/06/24 14:36:20 UTC

[jira] [Created] (CB-3980) Optional flag to call the native Image-Preview after call navigator.camera.getPicture(...)

Ronny Schleicher created CB-3980:
------------------------------------

             Summary: Optional flag to call the native Image-Preview after call navigator.camera.getPicture(...)
                 Key: CB-3980
                 URL: https://issues.apache.org/jira/browse/CB-3980
             Project: Apache Cordova
          Issue Type: Improvement
          Components: Plugin Camera
    Affects Versions: 2.8.0
         Environment: iOS 6.1.3, iPhone 3G,
android 2.3.6, android 4.0.3
            Reporter: Ronny Schleicher
            Assignee: Steve Gill


Current behavior if you call the camera:

navigator.camera.getPicture(this.onSuccess, this.onFail, {
   quality            : 90,
   destinationType    : navigator.camera.DestinationType.FILE_URI,
   sourceType         : navigator.camera.PictureSourceType.CAMERA,
   correctOrientation : true,
   targetWidth        : 800,
   targetHeight       : 800
});

If a photo is taken with the Camera, then the native 'image preview' is launched. Thus, the user can decide whether it wants to use the photo or not. This is a perfect workflow.


But call the PHOTOLIBRARY:

navigator.camera.getPicture(this.onSuccess, this.onFail, {
   quality            : 90,
   destinationType    : navigator.camera.DestinationType.FILE_URI,
   sourceType         : navigator.camera.PictureSourceType.PHOTOLIBRARY,
   correctOrientation : true,
   targetWidth        : 800,
   targetHeight       : 800
});

When an image is selected by the Photo Library, no native 'image preview' will appear. This is not optimal because the user has previously seen only the small thumnails.

It would be very good if you could put a 'native preview option flag' into the navigator.camera.getPicture(...) function.

That would be my suggestion:

navigator.camera.getPicture(this.onSuccess, this.onFail, {
   quality            : 90,
   destinationType    : navigator.camera.DestinationType.FILE_URI,
   sourceType         : navigator.camera.PictureSourceType.PHOTOLIBRARY,
   correctOrientation : true,
   targetWidth        : 800,
   targetHeight       : 800,
   showPreview        : true
});

Is it possible to implement something like that?


 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira