-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera - android - Image has wrong orientation #503
Comments
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue. Please see the Contributing Guide for how to create a Code Reproduction. Thanks! |
Here's the reproduction repo: https://github.com/WIStudent/capacitor-camera-orientation-issue |
And what are the steps to reproduce? |
I am seeing this issue on my Pixel 3a (Android 11, Android System WebView 91.0.4472.120) |
ah, yeah, could reproduce on Pixel 4, will work on a fix |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out. |
Bug Report
Plugin(s)
@capacitor/camera@1.0.2
Capacitor Version
Platform(s)
android
Current Behavior
When taking a picture with
and setting that image as a src of an
<img>
element, that image is not orientated correctly.Expected Behavior
Image should have correct orientation.
Additional Context
This is probably caused by the changes made in #480. My best guess is that the final image now contains the exif orientation returned by the camera. But
correctOrientation: true
rotated the image without also updating the exif orientation. So the exif orientation in the final image is incorrect. Chrome then rotates the image using the exif orientation.The text was updated successfully, but these errors were encountered: