-
Notifications
You must be signed in to change notification settings - Fork 348
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
Apply correct rotation depending on EXIF orientation code #402
Comments
I do not have at the moment any time to implement it. Any help is welcome. |
you can find more images |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed. Thank you for your contributions. |
Is this problem solved? Not working for me in 3.0.10. |
@genaris it should be fix on android but there is still the problem on iOS. I reopen it. Any contribution is welcome :) |
Describe the bug
On some images, the 90 degree rotation is not correctly applied (or any other rotation).
To Reproduce
Steps to reproduce the behavior:
resize
put a value of90
in rotation parameterObserved behavior
Expected behavior
Platform concerned:
Details
Current behavior
Before applying any transformation to the image, the library do two things:
Problem
We do not handle properly all EXIF Orientation code.
In the case of an Orientation code = 4 (i.e Mirror vertical), the getOrientation method returns 0, which is correct, but we do not apply a vertical flip on the bitmap before applying the desired rotation.
The EXIF Orientation code tells to the device how the image (orientation + flip) should be displayed on the screen (i.e. how the bitmap should be displayed) => more information about each value here
The following array show which EXIF orientation value are & are not properly handled with a rotation of 90°:
Proposition of algorithm
The text was updated successfully, but these errors were encountered: