ZLImageEditor
ZLImageEditor copied to clipboard
I am getting a crash on Done button after editing the image
error = vImageScale_ARGB8888(&sourceBuffer, &destBuffer, nil, numericCast(kvImageHighQualityResampling))
Unfortunately, I am unable to give more information, it happens with XCode 13.3 and iOS 15.4.
Why are we using over 400 MB RAM by editing just 3 Images?
Okay, I found out, that if I press on Save button (after drawing on an Image), the memory usage increase instantly from 100 to 400 and its crashes.
Sorry, I can't fix this crash right now, you can disable the code that caused the crash first.
You mean the entire framework...
https://github.com/longitachi/ZLImageEditor/blob/8e5437c20d5ecbb516ee028e1c994518747bbcc9/Sources/General/ZLEditImageViewController.swift#L816-L820
Thanks, but I thought this resizing might be more important, probably need to add a little more comments.
Upgrade to 1.0.6, use jpegData(compressionQuality:) to compress images.
Sometimes the screen freezes after hitting the 'done' button, I would suggest to create a loading state after tapping the 'done' button.
OK, I'll add it in the next version.