How can a UIImage
be saved as PNG8 (8-bit color mode) instead of PNG24 (24-bit color mode)?
The goal is to save space when dynamically saving many UIWebView
screenshots that have less than 255 colors.
Right now I'm using UIImagePNGRepresentation
after reducing the physical image size (Ref: here), but the images are still large.
Using UIImageJPEGRepresentation
with a quality < 1.f is not desired. Any other ideas?