ivpusic / react-native-image-crop-picker

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

Different images size for same file in iOS and Android #2067

Open gkasireddy202 opened 2 months ago

gkasireddy202 commented 2 months ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Expected behaviour

We need to return the same file size for iOS and Android.

Actual behaviour

When I select a 35 MB single file from the picker, the callback returns different file sizes for iOS and Android. iOS - 19133783 Android - 36700160

Steps to reproduce

1.

2.

3.

Attachments

// stacktrace or any other useful debug info

image

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

loekTheDreamer commented 1 month ago

its becasue cropping is false. if you make it true it will crop the image according to your width and height.