react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Image rotated using portrait mode and landscape mode in Android.
Version
Tell us which versions you are using:
- react-native-image-crop-picker v0.40.0
- react-native v0.68.7
Platform
Tell us to which platform this issue is related
- iOS - Working fine on iPhone 11 Pro
- Android - Issue on Android( Device name:One Plus 7T,Android 12,API:33)
Expected behavior
When the user takes a picture in portrait or landscape mode or picks the image from the gallery, that base64 uri picture should not be rotated.
Actual behavior
When the user takes a picture in portrait or landscape mode or picks the image from the gallery, that base64 uri picture is rotated
Steps to reproduce
ImagePicker.openCamera({
width: 300,
height: 400,
cropping: false,
multiple: false}).then(image => { })
.catch(error => {})
ImagePicker.openPicker({ width: 300, height: 400, cropping: false, multiple: false, mediaType: 'photo' }).then(image => { }) .catch(error => { })
Attachments
// 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
U can use "react native resize image" to rotate it be 0 before uploading to serve
@Thuan60th4 - Thanks for your reply. We have 5 to 7 class components so we need to add this react native resize image in all 7 class components. Any idea without using react native resize image npm?
Any update. We are facing this issue in production.
@ivpusic - Thanks for your library.I have been using this library for the last 3 years. Our customers are facing image rotation issue in Android. Please resolve this issue.
@ivpusic - Please look at the issue. Our customers are facing this issue in production.
U can use "react native resize image" to rotate it be 0 before uploading to serve
Any Example code?
@Thuan60th4 - Thanks for your suggestion. I rotated the image rotation 0 using npm:react-native-image-resizer before uploading it to the server. works fine.
Still not resolved...
Any update on this?