This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Description
There are some issues with crop on samsung devices when doing non-square crop. It caused by rotating matrix by -exif_rotate value and than adding exif. Suppose I want to crop picture to get 16:9 rectangle and then set it to ImageView by using standard setImageUri() method.

then I getting this

If I will use a library which reads exif and applies rotating then I getting this

So, the main issue, is when we apply exif to cropped picture, we rotate the whole bitmap and change it's dimensions from 16:9 to 9:16. Also, if we not apply exif parameters when setting picture to image view the picture will be rotated by minus exif rotation angle and stretched to given dimensions. I've fixed this this issue in mine pull request #116. If you have another solution, please fix it.