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

Volker Braun edited comment on CB-12613 at 2/2/18 8:46 AM:
-----------------------------------------------------------

Should be capital-C Camera in the example.

Setting to DestinationType.FILE_URI does produce a jpeg but it is downscaled, 
1847x1385 instead of the actual 4032x3024.

 

PS: Starting with Xcode 9.3 beta, HEIC images are finally supported in the 
simulator

 

PPS: The documentation says: 
{quote}_Note:_ On iOS passing {{DestinationType.NATIVE_URI}} along with 
{{PictureSourceType.PHOTOLIBRARY}} or {{PictureSourceType.SAVEDPHOTOALBUM}} 
will disable any image modifications (resize, quality change, cropping, etc.) 
due to implementation specific.
{quote}


was (Author: vfbraun):
Should be capital-C Camera in the example.

Setting to DestinationType.FILE_URI does produce a jpeg but it is downscaled, 
1847x1385 instead of the actual 4032x3024.

 

PS: Starting with Xcode 9.3 beta, HEIC images are finally supported in the 
simulator

 

PPS: The documentation says: 
{quote}_Note:_ On iOS passing {{DestinationType.NATIVE_URI}} along 
with{{PictureSourceType.PHOTOLIBRARY}} or {{PictureSourceType.SAVEDPHOTOALBUM}} 
will disable any image modifications (resize, quality change, cropping, etc.) 
due to implementation specific.
{quote}

> Camera encoding type not respected when destination type is NATIVE_URI
> ----------------------------------------------------------------------
>
>                 Key: CB-12613
>                 URL: https://issues.apache.org/jira/browse/CB-12613
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-camera
>         Environment: iOS 10+
>            Reporter: John Czaplewski
>            Priority: Major
>
> When a PNG or HEIC (Apple's new compressed file format) image is selected 
> using the method `getPicture` on iOS with the destination encoding type set 
> to JPEG, the original file format is returned instead of a JPEG. 
> For example,
> {code:javascript}
> camera.getPicture({
>   quality: 100,
>   destinationType: camera.DestinationType.NATIVE_URI,
>   encodingType: camera.EncodingType.JPEG
> }).then(imageData => {
>   // imageData will be the original file format, not a JPEG
> })
> {code}
> If the destinationType is changed to `FILE_URI` the image will be converted 
> to a JPEG as expected, but metadata such as geolocation will be stripped from 
> the image (this might be a separate issue?).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to