GitToTheHub commented on issue #974: URL: https://github.com/apache/cordova-plugin-camera/issues/974#issuecomment-5353689897
I let AI analyse it and it made this change: > - `MediaStore.ACTION_IMAGE_CAPTURE` always writes JPEG data into the capture file, regardless of the requested encodingType/file extension. Deriving the source mimeType from that file's extension (via `FileHelper.getMimeType`) caused PNG-named captures to be misreported as image/png, so `getScaledAndRotatedBitmap()` skipped reading the EXIF orientation and `correctOrientation` had no effect. > - Use the actual JPEG mimeType for the captured source data instead, so orientation correction works regardless of the requested encodingType. You can PR #976 if this fixes your issue. -- 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]
