hhunaid/react-native-image-crop-tools

The image is get zoomed when i rotate the image after the aspect ratio change

Opened this issue · 4 comments

I have used this package in my project. I changed the image view based on aspect ratio. After that i have rotated the image. If i rotate the image. every time the image is got zoomed and image view display also wrong.
Simulator Screen Shot - iPhone 12 Pro Max - 2020-11-26 at 10 06 07
Simulator Screen Shot - iPhone 12 Pro Max - 2020-11-26 at 10 06 12
Simulator Screen Shot - iPhone 12 Pro Max - 2020-11-26 at 10 06 16
Simulator Screen Shot - iPhone 12 Pro Max - 2020-11-26 at 10 06 22
Simulator Screen Shot - iPhone 12 Pro Max - 2020-11-26 at 10 06 26
Uploading Sim Uploading Simulator Screen Shot - iPhone 12 Pro Max - 2020-11-26 at 10.06.36.png… ulator Screen Shot - iPhone 12 Pro Max - 2020-11-26 at 10.06.30.png…

Could you please let me know how to fix this error.

Use Case:
Select the image
Change the aspect ratio for example 5: 7
Rotate the image

This happens when you have the aspect ratio locked. The image is rotated but to keep the aspect ratio, it is zoomed in. This is done to keep the crop boundary within the pre-rotation boundary.

Is it different on Android?

No. I tried in iOS only. Is this possible to fix this issue.

Unfortunately, no. This library is using another library under the hood. 'TOCropViewController' they'll have to fix it at their end