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. The new flow of cropImage method is so:
Orientation
attribute when calling copyExif() method. Set as ExifInterface.ORIENTATION_NORMAL