react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

✨ Add JPG-Compression flag (`quality`) to `takePhoto(...)`

Open viljark opened this issue 3 years ago • 4 comments

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

viljark avatar Jan 10 '22 09:01 viljark

related to PR https://github.com/mrousavy/react-native-vision-camera/pull/1201

FDiskas avatar Nov 17 '22 14:11 FDiskas

Unfortunately there's no way to do this on iOS, so I can't really implement it yet...

mrousavy avatar Sep 30 '23 09:09 mrousavy

actually let's leave this open

mrousavy avatar Sep 30 '23 09:09 mrousavy

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.

omerts avatar Mar 09 '24 19:03 omerts