Open dtmzr opened 7 years ago
thanks for reporting this. I see OutOfMemoryError error. Would be cool if you have some time to check if we can somehow avoid OutOfMemoryError.
in andorid, need use localpath to save picture
@marlti7 sorry for the late response but what do you mean by that? Like I said picking images works fine in android, it only crashes when I try to take a picture first.
I'm also getting this issue -- app restarts after taking picture.
+1
+1. App restarts after taking picture but works fine when picking image.
I have this problem when I take a photo from the camera
this is my function
openCamera() { ImagePicker.openCamera({ width: 300, height: 300, cropping: true, cropperCircleOverlay: true, compressImageMaxWidth: 640, compressImageMaxHeight: 480, compressImageQuality: 0.5, compressVideoPreset: 'MediumQuality', includeExif: true, }) .then((image) => { console.log('received image', image); this.setState({ profilePciture: { uri: image.path, width: image.width, height: image.height, mime: image.mime, }, }); }) .catch((e) => { console.log(e); Alert.alert(e.message ? e.message : e); }); }
I'm also having this issue, Is there any way to handle this error temporary asking the user to select another image if it is so big to fit in memory?.
Same here, this issue still occurs on low device android
Hi, Facing the issue.
@adnkh @arifinoid Any workaround found?
Thanks
I have this problem when I take a photo from the camera
this is my function
openCamera() { ImagePicker.openCamera({ width: 300, height: 300, cropping: true, cropperCircleOverlay: true, compressImageMaxWidth: 640, compressImageMaxHeight: 480, compressImageQuality: 0.5, compressVideoPreset: 'MediumQuality', includeExif: true, }) .then((image) => { console.log('received image', image); this.setState({ profilePciture: { uri: image.path, width: image.width, height: image.height, mime: image.mime, }, }); }) .catch((e) => { console.log(e); Alert.alert(e.message ? e.message : e); }); }
This issue is not solved after 3 years yet !!!!
Version
Platform
Expected behaviour
Picking or taking one image, cropping it and saving it's path to redux which is combined with redux-persist.
Actual behaviour
Picking one image and cropping works fine. Whenever I want to take a picture and crop it the app 'resets/reloads' after cropping and runs out of memory.
More infos
240 similar issue
Steps to reproduce
Attachments
Ps. I'm 600m away from your companies location, any time up for fixing this together!