Home > Mobile >  How to optimise an Image in React Native without losing its quality?
How to optimise an Image in React Native without losing its quality?

Time:12-07

Photos captured via camera are too large for efficient upload and download in React native.

Is there an api or library to compress a image file in React Native without losing its quality?

CodePudding user response:

use this library make quality prop maximum react-native-compressor

quality: number (default: 0.8)

The quality modifier for the JPEG file format, can be specified when output is PNG but will be ignored.

  • Related