UIImage reduce byte size

本小妞迷上赌 提交于 2019-12-10 10:59:28

问题


I am using following code to resize an image - it all works well and as expected...

Resize UIImage the right way

I use interpolation quality as kCGInterpolationLow and UIImageJPEGRepresentation(image,0.0) to get the NSData of that image.

The problem is that the image size is still a bit high in size at around 100kb. My question is can I reduce it further?

The images originate from the iPhone Photo Album and are selected via a imagePickerController.

Many thanks,

来源:https://stackoverflow.com/questions/4013871/uiimage-reduce-byte-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!