guhungry / react-native-photo-manipulator

React Native Image Processing API to edit photo programmatically for Android and iOS. It features print text, overlay on another image (add watermark), resize, crop, flip, rotate and optimize image size then convert file format to jpeg or png
MIT License
342 stars 40 forks source link

String too big #832

Closed aliza-khu closed 4 months ago

aliza-khu commented 4 months ago

I am getting the below error while capturing such an image and trying to convert the image to base64. Error: String too big at Obj_set_any (native) at setAny IMG_1403

guhungry commented 4 months ago

Hi @aliza-khu, this library does not support using base64 images directly. Please save it to file first by using react-native-fs and supply the path into this library.

https://github.com/guhungry/react-native-photo-manipulator/issues/804#issuecomment-2050886922

aliza-khu commented 4 months ago

@guhungry, This issue is not related to the react-native-photo-manipulator. ref: https://github.com/SnappFr/react-native-image-base64/issues/27