Tell us which versions you are using:
Tell us to which platform this issue is related
I can't crop the image. After selecting the image, i can see the image preview.
When i click Choose, the error appear.
1.
2.
3.
// stacktrace or any other useful debug info
Warning: Attempt to present <UIAlertController: 0x7f9339486e70> on
<QBImagePickerController: 0x7f93395526e0> whose view is not in the window hierarchy!
hmm, cannot reproduce this. can you give me more details? like code example
@ivpusic
ups.. i get the real error now.
I think it's about ios permission, right?
Could you please help me.. 馃檱
{ [Error: Cannot save image. Unable to write to tmp location.]
line: 7221,
column: 20,
sourceURL: 'http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false',
framesToPop: 1,
code: 'E_CANNOT_SAVE_IMAGE',
domain: 'RCTErrorDomain',
userInfo: null,
nativeStackIOS:
.....
hm, do you have some time to debug this? here is the error line https://github.com/ivpusic/react-native-image-crop-picker/blob/bac8eebe884041607a2118ac312a5e10b76a9e60/ios/ImageCropPicker.m#L618
I got this error too, from specifying the compressImageMaxWidth option. It seems to not occur if I remove the compressImageMaxWidth option, or if I additionally supply the compressImageMaxHeight option. The image in question has a height of 2500 and width of 1668.
Same happening for me. Providing compressImageMaxHeight is a workaround but I hope it get's a fix soon
have same issue
Comment removed: opening a new issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/818
i have the same error when cropping if both move and scale are used. If i only scale the picture or only move it the save works well, compressImageMaxWidth and compressImageMaxHeight are not relevant in my case
Set atomically from YES to NO will solved the issue
ImageCropPicker.m L940
BOOL status = [data writeToFile:filePath atomically:NO];
. + 1 for issue when cropping and scaling on iOS
same here though
Most helpful comment
I got this error too, from specifying the
compressImageMaxWidthoption. It seems to not occur if I remove thecompressImageMaxWidthoption, or if I additionally supply thecompressImageMaxHeightoption. The image in question has a height of2500and width of1668.