Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Normalise bitmap orientation, before cropping an image #101

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

Conversation

doruchidean
Copy link

Device cameras have different native orientations (i.e. Samsung, One Plus, Sony => ROTATE_90). When cropping the bitmap, it has to be normalised before.
The new flow of cropImage method is so:

  • decode the bitmap from file
  • check exif orientation data
  • rotate bitmap accordingly
  • crop normalised bitmap
  • overwrite the Orientation attribute when calling copyExif() method. Set as ExifInterface.ORIENTATION_NORMAL

Device cameras have different native orientations (i.e. Samsung, One Plus, Sony => ROTATE_90).
When cropping the bitmap, it has to be normalised before.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant