React-native-image-picker: Image Compression

Created on 4 Aug 2015  路  3Comments  路  Source: react-native-image-picker/react-native-image-picker

So far this has been working great. After taking a picture through the camera it grabs the UIImage *image = info[UIImagePickerControllerOriginalImage]; which is quite large. Any idea on how to get the image size smaller?

Most helpful comment

@marcshilling How to ensure maximum compression without distortion

All 3 comments

You can now specify a value from 0 (worst) to 1(best) for the "quality" key in the options object which controls the image compression.

@marcshilling How to ensure maximum compression without distortion

yes, please provide a workaround for the compression without image distortion, because for small images it gets much distorted.

Was this page helpful?
0 / 5 - 0 ratings