flutter_image_cropper icon indicating copy to clipboard operation
flutter_image_cropper copied to clipboard

Prevent aspect ratio from switching when image is rotated (using a locked aspect)

Open carman247 opened this issue 4 years ago • 6 comments

Why does the aspect ratio (if locked) switch on iOS when the image is rotated? Is there any way to prevent this?

e.g.

I want to use a locked aspect ratio, and only one. The problem is when the user rotates the image the aspect switches (16:9 becomes 9:16) ...

It's great that the image can be rotated but if the aspect flips at the same time then that kind of defeats the point in having a locked aspect ...

This is only a problem with iOS

carman247 avatar Feb 24 '21 15:02 carman247

Did you found any solution for this?

jithinvarghese avatar Mar 04 '21 09:03 jithinvarghese

Did you found any solution for this?

No, not yet unfortunately. I've had to disable rotation on iOS for now.

carman247 avatar Mar 04 '21 18:03 carman247

We had the same issue and added this fix to a fork: https://github.com/duo-nv/flutter_image_cropper/commit/2aab8aac77dce271e2d0f8283e6ff4a0e972e0e8

We haven't tested the other features, but this worked for our use case.

duo-nv avatar Mar 17 '21 14:03 duo-nv

Any concrete update on this?

mtical avatar Apr 16 '21 23:04 mtical

FYI - The fix works with the latest (1.4.0 version). Doesn't seem to work with prior versions.

mtical avatar Apr 17 '21 00:04 mtical

How to disable rotation in iOS?

mukkoticf avatar Apr 30 '22 09:04 mukkoticf