Skip to content
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

Translate MediaStore.Image.ORIENTATION to ExifInterface.ORIENTATION to keep orientation processing proper. #1269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RobertM-BLS
Copy link

MediaStoreRequestHandler: read MediaStore.Image.ORIENTATION value and translate it to ExifInterface.ORIENTATION_* value.

Picasso determines orientation according to ExifInterface.ORIENTATION__. All possible values in MediaStore.Image.ORIENTATION are: 0, 90, 180, 270 (according to: https://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html#ORIENTATION). The values differ, thus orientation read from MediaStore must be translated to ExifInterface.ORIENTATION__ value.

Updated RequestHandler::getExifOrientation description.

… translate it to ExifInterface.ORIENTATION_* value.

Picasso determines orientation according to ExifInterface.ORIENTATION_*. All possible values in MediaStore.Image.ORIENTATION are: 0, 90, 180, 270 (according to: https://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html#ORIENTATION). The values differ, thus orientation read from MediaStore must be translated to ExifInterface.ORIENTATION_* value.

Updated RequestHandler::getExifOrientation description.
@piphagor
Copy link

Really need this fix.

@RobertM-BLS
Copy link
Author

Is there anything I can make for you to speed up reviewing and merging processes of this pull request??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants