You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you try to use downsampled images for drawing? I looked at the code a bit and if I understood correctly, the full image is loaded into memory.
In UIImagePickerControllerDelegate we can use info[.imageURL] (unfortunately .imageURL available from iOS 11) and put it to apple downsample image function from WWDC 2018 (https://developer.apple.com/videos/play/wwdc2018/219 39 page in pdf)
@Banannzza
Thank you.
I tried to do that. However, I think I would like to use a large image to zoom that.
And I know that will use so many memory. (but why is this so huge? around 300MB!)
But It may have a good way of drawing. Do you have any good way?
If there is no way, we have no choice.
We will use a downsampled image from UIImagePickerController or PHAsset.
And, I did not know that .imageURL.
Definitely, we can resize that with ImageIO.
When we open PixelEditorViewController, memory usage is very high that can see with Instruments.
It seems that
ImageTool.resize
cause this.https://developer.apple.com/videos/play/wwdc2018/416/
The text was updated successfully, but these errors were encountered: