Skip to content

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

Open
RobertM-BLS wants to merge 1 commit intosquare:masterfrom
RobertM-BLS:mediastore-orientation-fix
Open

Translate MediaStore.Image.ORIENTATION to ExifInterface.ORIENTATION to keep orientation processing proper.#1269
RobertM-BLS wants to merge 1 commit intosquare:masterfrom
RobertM-BLS:mediastore-orientation-fix

Conversation

@RobertM-BLS
Copy link
Copy Markdown

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
Copy Markdown

Really need this fix.

@RobertM-BLS
Copy link
Copy Markdown
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