ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.08k stars 1.55k forks source link

Image gets automatically rotated upon cropping (Android) #1890

Open nitinshukla413 opened 1 year ago

nitinshukla413 commented 1 year ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Android-Samsung A53, mainly on android devices

Expected behaviour

Image shouldn't get automatically get rotated at the time of cropping, it should be as it is as it was got clicked.

Actual behaviour

Image gets automatically rotated upon cropping

Steps to reproduce

  1. Click the image

  2. Tap on the crop icon it automatically get rotated.

Attachments


 ImageCropPicker.openCropper({
            path: uri,
            includeBase64: true,
            writeTempFile: false,
            freeStyleCropEnabled: true,
            height: 800,
            width: 800,
        }).

https://user-images.githubusercontent.com/50632879/212665346-a75ba922-ed72-4531-b93c-285b5a0c6d2f.mp4

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

minhna commented 1 year ago

Have you found a solution for this one?

spinoza1791 commented 1 year ago

Same behavior on version 0.40.0, RN 0.70.12. This is a deal breaker for prod, because although issue does not reproduce on older version 0.36.2, the module fails on API 33 with 0.36.2. Please help us with a workaround. Thx!

gkasireddy202 commented 1 year ago

Any update on this issue? I faced this issue on an Android device in react-native-image-crop-picker": "^0.40.0 and react-native:0.68.7.