How to compress image size using UIImagePNGRepresentation - iOS? : <p>I'm using <code>UIImagePNGRepresentation</code> to save an image. The result image is of size 30+ KB and this is BIG in my case. </p>

<p>I tried using <code>UIImageJPEGRepresentation</code> and it allows to compress image, so image saves in &lt; 5KB size, which is great, but saving it in JPEG gives it white background, which i don't want (my image is circular, so I need to save it with transparent background).</p>

<p>How can I compress image size, using <code>UIImagePNGRepresentation</code>?</p>
