react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

Image rotated using portrait mode and landscape mode in Android.

Open gkasireddy202 opened this issue 1 year ago • 9 comments

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

Landscape mode camera Landscape mode gallery Patroit mode camera Potrait mode Gallery

// 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

gkasireddy202 avatar Aug 18 '23 05:08 gkasireddy202

U can use "react native resize image" to rotate it be 0 before uploading to serve

Thuan60th4 avatar Aug 27 '23 09:08 Thuan60th4

@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?

gkasireddy202 avatar Aug 28 '23 05:08 gkasireddy202

Any update. We are facing this issue in production.

gkasireddy202 avatar Aug 30 '23 11:08 gkasireddy202

@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.

gkasireddy202 avatar Sep 08 '23 07:09 gkasireddy202

@ivpusic - Please look at the issue. Our customers are facing this issue in production.

gkasireddy202 avatar Sep 12 '23 07:09 gkasireddy202

U can use "react native resize image" to rotate it be 0 before uploading to serve

Any Example code?

gkasireddy202 avatar Sep 12 '23 09:09 gkasireddy202

@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.

gkasireddy202 avatar Sep 14 '23 10:09 gkasireddy202

Still not resolved...

EducoreAPK avatar May 29 '24 10:05 EducoreAPK

Any update on this?

DanushkaPerusinghe avatar Jun 28 '24 08:06 DanushkaPerusinghe