Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.86k stars 2.16k forks source link

Library no cropping what it should #111

Closed khrizt closed 7 years ago

khrizt commented 8 years ago

Hi,

Implementing UCrop in my project I found a problem when cropping some images, I'm attaching the screenshots, hope they help:

Cropping the image

screenshot_2016-05-05-17-38-34

The result

screenshot_2016-05-05-17-38-44

Looks like rotates the image and does not get the correct coordinates. Maybe something with the meta-data of the images, sometimes I had problems with rotated images from Samsung or LG cameras.

shliama commented 8 years ago

How can I reproduce it? Do you touch/change image position before cropping? Please attach the original image.

khrizt commented 8 years ago

Sorry here is the original image and yep I change the image position before cropping

20160505_173429

Attaching the image appeared in landscape format so it looks like it's something about meta-data rotation with attribute ExifInterface.TAG_ORIENTATION.

shliama commented 8 years ago

Yeah, I could reproduce it on my device too. Seems to be issue with Exif properties. I'll try to fix in the next update :)

khrizt commented 8 years ago

Thanks man! I'll put it on my app on the next update.

shliama commented 8 years ago

@khrizt please try to use library version 2.1.0 - now EXIF data should be processed properly.

khrizt commented 8 years ago

Thanks man, I'll give it a try and tell you something

khrizt commented 8 years ago

Looks like everything is allright, I plan on adding your library to the release this week

zzxxasp commented 8 years ago

the bug is still exists in 2.1.0 from SonyZ5

shliama commented 8 years ago

@zzxxasp please, attach an image so I can reproduce the bug.

TeeRawk commented 7 years ago

outdated