Benefits of resizing image with CG Image
I resized a 1920 * 1038 image to 6000 * 6000 on my iPhone 11.
CIImage is faster in processing speed, but CGImage has less memory usage.
By the way, the memory usage was small even in the image composition process.
The memory usage is just by looking at the memory of the debugger, but
if you want to reduce the memory usage, it is better to use CGImage, I think.
As for the image quality, UIImage was the best, and CIImage and CGImage looked about the same.
CGImage CIImage UIImage
I’m a freelance engineer.
Please feel free to contact us with a brief development description.
I am making an app that uses Core ML and ARKit.
We send machine learning / AR related information.