cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard B Knoll (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-4150) Support all image format together while uploading images from mobile
Date Fri, 16 Oct 2015 16:18:05 GMT

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

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

We do have an encodingType field in the camera options (though I think it has a lot of quirks
for PNG images). Can you explain a bit more about what you mean with this syntax? Is the intention
to return two images (one JPEG and one PNG)?

> 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
>              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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message