[ 
https://issues.apache.org/jira/browse/CB-12613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Czaplewski updated CB-12613:
---------------------------------
    Description: 
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}


  was:When a png image is selected using the method `getPicture` on iOS with 
the destination encoding type set to JPEG, a png image is returned. 


> 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
>
> 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}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to