PDA

View Full Version : How to compress image size?




sspbond007
Sep 8, 2008, 10:10 AM
Hi,

Is there any way to compress image size in iphone? Actually my application is uploding images to server from phone. It takes long time to upload the original image. So if I can compress or convert to thumbnail, it'll help me out.

thanks



kainjow
Sep 8, 2008, 03:46 PM
You could convert the image to jpeg using UIImageJPEGRepresentation() and a compression quality.

Alternatively you could convert it to png and use a tool like optipng (http://optipng.sourceforge.net/) to try and compress it further.

sspbond007
Sep 8, 2008, 05:20 PM
thanks