How to compress image size?

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

  1. sspbond007 macrumors member

    Joined:
    Aug 19, 2008
    #1
    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
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    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

    Joined:
    Aug 19, 2008

Share This Page