DanielSWolf opened a new issue, #974:
URL: https://github.com/apache/cordova-plugin-camera/issues/974

   # Bug Report
   
   ## Problem
   
   `camera.getPicture` with `correctOrientation: true` works for 
`Camera.EncodingType.JPEG`, but not for `Camera.EncodingType.PNG`.
   
   ### What is expected to happen?
   
   Consider the following call:
   
   ```ts
   camera.getPicture(
     {
       destinationType: Camera.DestinationType.FILE_URI,
       sourceType: Camera.PictureSourceType.CAMERA,
       encodingType: Camera.EncodingType.PNG,
       mediaType: Camera.MediaType.PICTURE,
       allowEdit: false,
       correctOrientation: true, // !
       quality: 100,
     },
     (rawFileUrl: string) => { /* ... */ },
     (error: unknown) => { /* ... */ },
   );
   ```
   
   Because of `correctOrientation: true`, I expect the returned image to be 
rotated correctly, depending on how I hold the phone while taking the picture.
   
   ### What does actually happen?
   
   The returned picture is always in landscape mode. Depending on how I hold 
the phone, it's (wrongly) rotated by 90° or even 180°.
   
   ## Information
   
   Rotation works correctly for `Camera.EncodingType.JPEG`.
   
   ### Environment, Platform, Device
   
   Galaxy S24 with Android 16
   
   ### Version information
   
   Cordova 13, cordova-plugin-camera 8.0.0
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to