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 resized on iOS when cropping without define size #2082

Open
nicolascavallin opened this issue Aug 30, 2024 · 3 comments
Open

Image resized on iOS when cropping without define size #2082

nicolascavallin opened this issue Aug 30, 2024 · 3 comments

Comments

@nicolascavallin
Copy link

nicolascavallin commented Aug 30, 2024

Version

  • react-native-image-crop-picker v0.41.2
  • react-native v0.74.5

Platform

  • iOS
  • Android

Expected behaviour

When:

cropping: true,
multiple: false,
  • without defining width and height

The image should be uploaded with the original size.

Actual behaviour

On iOS the image is resized to a maximum of 200 px or less

Steps to reproduce

ImagePicker.openPicker({
  mediaType: 'photo',
  freeStyleCropEnabled: true,
  forceJpg: true,
  cropping: true,
  multiple: false,
})
@loekTheDreamer
Copy link

loekTheDreamer commented Sep 20, 2024

having the same issue.

what is the expected behaviour?
should it auto select width and height of image?

at the moment im using a work around with screen width and height and this patch to enable a better cropping experience. and again without width or height image is 200px regardless of patch or cropping.

@nicolascavallin
Copy link
Author

hey @loekTheDreamer I think the expected behavior should be to keep the original size of the image as in Android

@jaysongiroux
Copy link

+1

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

3 participants