-
Notifications
You must be signed in to change notification settings - Fork 31
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
EXIF orientation is incorrect #6
Comments
This may related to camera plugin issue: |
So your guess is that the camera plugin sets the wrong EXIF orientation? I thought the same, but then I copied the image taken with the camera plugin to my computer and tested it with imagemagick. However, imagemagick reports the correct EXIF information as well as Apple Preview. The image above is taken with the camera plugin. On the other side, I just realize that the image is wider than high. |
Tested with iphone 8s (https://github.com/bigflood/exifviewer)
|
I can confirm your result. I used your example app to take a picture from the camera. EXIF orientation is 6 (Rotated 90 CW), but should be 1 (Horizontal (normal)) |
I did a more detailed study of EXIF orientation using an Iphone 7 and Samsung GT-I9195 with the help of your https://github.com/bigflood/exifviewer Actual EXIF orientation:
Android (tested using Samsung GT-I9195 back camera):
where iOS (iPhone 7 back camera):
Findings=> Camera Preview Widget needs rotation on both iOS & Android Implementation Idea to show image and camera preview correctly on both iOS and Android: I implemented these changes to your app and opened a pull request to demonstrate the fixed camera image and camera preview: bigflood/exifviewer#1 |
If you used
|
Hi, I am using Flutter with the camera plugin.
It seems that the library always reports orientation 6 which means landscape left which is incorrect.
I use the following code to determine the orientation from EXIF:
orientation.values[0]
seems to always be 6.Tested with Iphone 7 (should have orientation=1) and Samsung Galaxy S3 mini (should have orientation=6).
However, for both phones the library reports orientation=6 which is wrong for the iPhone.
If I analyze the image with imagemagick, it reports orientation=1 which is correct for the iPhone 7:
I took the image with the camera plugin on Iphone 7 and retrieved it from the device by printing it's base64 value to stdout. See the image here:
The text was updated successfully, but these errors were encountered: