ivpusic / react-native-image-crop-picker

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

iOS cropping active image upload in bad resolution #1700

Open luigbren opened 2 years ago

luigbren commented 2 years ago

Platform

Tell us to which platform this issue is related

I'm using iOS 15 and I'm having problems uploading an image with the cropping function active, the image uploads but in bad resolution (200x200 pix) 15kb, instead in android it uploads without problems (good resolucion +600pix), the image has ++1080p resolution.

ImagePicker.openPicker({
      includeExif: true,
      compressImageMaxWidth: 1920,
      compressImageMaxHeight: 1080,
      compressImageQuality: 0.8,
      mediaType: 'photo',
      cropping: true,
    })
s-fontinelle commented 2 years ago

@luigbren having the same issue on my end. Following this thread.

devjsrana commented 2 years ago

Same here, did you guys find any solution?

devjsrana commented 2 years ago

Yeahhh finally I found the solution to fix this issue, just need to add width and height

loekTheDreamer commented 5 months ago

adding width and height doesnt feel like a solution. it force the image to be a certain width and height is what i thought initially.

setting a deafult width and height to screen size or window size fixes the problem for me like @devjsrana suggested. and then after cropping it to custom size work fine.

so it seems it is just the initial width and height that need to be added. thanks