[
https://issues.apache.org/jira/browse/CB-4150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14962282#comment-14962282
]
jcesarmobile commented on CB-4150:
----------------------------------
I think this can be closed, if he wants two images with different formats he
can call the getPicture twice, one for PNG and other for JPEG, the function is
called getPicture, not getPictures, will only return one.
> Support all image format together while uploading images from mobile
> --------------------------------------------------------------------
>
> Key: CB-4150
> URL: https://issues.apache.org/jira/browse/CB-4150
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Plugin Camera
> Reporter: Bavya Bal
> Priority: Minor
> Labels: Triaged
>
> To support jpeg and png image format together like below?
> {code:javascript}
> function getImage() {
> navigator.camera.getPicture(uploadPhoto, function(message) {
> alert('get picture failed');
> }, {
> quality: 50,
> destinationType:
> navigator.camera.DestinationType.FILE_URI,
> sourceType:
> navigator.camera.PictureSourceType.PHOTOLIBRARY
> encodingType: Camera.EncodingType = { JPEG : 0, PNG : 1}
> }
> );
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]