I use UIImagePNGRepresentation to save the image. The result image has a size of 30+ KB, and this is BIG in my case.
I tried using UIImageJPEGRepresentation , and it allows you to compress the image, so the image is saved in <Size 5 KB, which is great, but saving it in JPEG gives it a white background that I don't need (my image is circular, so I need to save it with a transparent background )
How can I compress image size using UIImagePNGRepresentation ?
ios objective-c uiimage uiimagejpegrepresentation uiimagepngrepresentation
hyd00
source share