Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image rotated using portrait mode and landscape mode in Android. #1960

Open
gkasireddy202 opened this issue Aug 18, 2023 · 9 comments
Open

Comments

@gkasireddy202
Copy link

gkasireddy202 commented Aug 18, 2023

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

@Thuan60th4
Copy link

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

@gkasireddy202
Copy link
Author

@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
Copy link
Author

Any update. We are facing this issue in production.

@gkasireddy202
Copy link
Author

@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
Copy link
Author

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

@gkasireddy202
Copy link
Author

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

Any Example code?

@gkasireddy202
Copy link
Author

gkasireddy202 commented Sep 14, 2023

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

@EducoreAPK
Copy link

Still not resolved...

@DanushkaPerusinghe
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants