Yalantis / uCrop

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

How can I get the cropped area coordinate AFTER ZOOM in relative to the original image? #823

Open reyhanehtavakolipour opened 2 years ago

reyhanehtavakolipour commented 2 years ago

Do you want to request a feature or report a bug? bug

What is the current behavior? Currently if we crop the image after zooming the image, the rectF of cropped image is relative to the zoomed visible area and not relative to the original image. Therefore it shows a wrong cropped area by saving the changes.

https://user-images.githubusercontent.com/90277952/155900088-a58b96da-f8cb-40e0-87d3-dd51292b6953.mp4

What is the expected behavior? The expected behavior is to get the crop coordinate, relative to the original image.