M using UIImagePNGRepresentationto create a png image from a pdf file. I want to reduce the size of the created image.
UIImagePNGRepresentation
How can I do that?
Saving as a JPG with a quality of 90% will dramatically reduce the size, and the image will still look normal.Due to the high resolution DPI of the iPhone, this will not be noticeable!
you can upload png to UIImage and then resize it.
this bay how to resize it.
http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/