shijingsh / react-native-customized-image-picker

iOS/Android image picker with support for camera, video compression, multiple images and cropping
245 stars 59 forks source link

minCompressSize seems not working on android #39

Closed luchenn closed 4 years ago

luchenn commented 6 years ago

ImagePicker.openPicker({ multiple: true, waitAnimationEnd: false, includeExif: false, isCamera: true, multipleShot: true, maxSize: 12, compressQuality: 1, minCompressSize: 200, }).then(...

The result images is expected to be at least 200kb, but it is much smaller than that.

liukefu2050 commented 6 years ago

If the file's original size is less than 200KB, it will not be compressed and can not control the result of final compression.

prasad456 commented 4 years ago

My file size 5060 it can't be compressed to 800 ?

liukefu2050 commented 4 years ago

Sorry, it doesn't seem to work. Compression is automatic according to the quality provided

prasad456 commented 4 years ago

So, Can't compress at all?

liukefu2050 commented 4 years ago

If you set compressquality to 90, it may be about 500kb, but it is not a certain size. You can test it. Please note that setting width and height may affect compression