[
https://issues.apache.org/jira/browse/CB-3980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14994342#comment-14994342
]
Richard B Knoll commented on CB-3980:
-------------------------------------
Right, same situation in Android I believe. We would probably have to implement
our own image preview, and I don't know how much value that provides and if we
could get it to match the native one. This might be a feature better left to
app developers to implement themselves (i.e. let them make their own image
preview if they know they will be using the gallery option).
> 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, aAdroid 4.0.3
> Reporter: Ronny Schleicher
> Labels: Triaged
>
> Current behavior if you call the camera:
> {code:javascript}
> 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
> });
> {code}
> 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:
> {code:javascript}
> 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
> });
> {code}
> 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:
> {code:javascript}
> 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
> });
> {code}
> Is it possible to implement something like that?
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]