How to compress image size?

Discussion in 'iOS Programming' started by sspbond007, Sep 8, 2008.

  1. sspbond007 macrumors member

    Aug 19, 2008

    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.

  2. kainjow Moderator emeritus


    Jun 15, 2000
    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 to try and compress it further.
  3. sspbond007 thread starter macrumors member

    Aug 19, 2008

Share This Page