react-native-vision-camera
react-native-vision-camera copied to clipboard
✨ Add JPG-Compression flag (`quality`) to `takePhoto(...)`
I would like to have a compressed image as quickly as possible without having to invoke my own image compression methods on the original image, which takes quite long time on some slower android devices. At the moment I am using expo-image-manipulator to compress the original file.
If this is possible on the native APIs, then it would be great if we could have this option available in react-native-vision-camera aswell.
Originally posted by @viljark in https://github.com/mrousavy/react-native-vision-camera/discussions/722
related to PR https://github.com/mrousavy/react-native-vision-camera/pull/1201
Unfortunately there's no way to do this on iOS, so I can't really implement it yet...
actually let's leave this open
We are using react-native-image-resizer, to change the size and quality of the image, maybe it can be integrated into this lib. I don't mind workign on a PR, if this is somthing that will be added.