In iOS to save an UIImage as JPEG, I use UIImageJPEGRepresentation, however it doesn’t take options other than compression ratio. I wish to save the UIImage into progressive JPEG format, is there a easy way to do so?
Looks like in OS X there is an NSImageProgressive option to save NSImage to progressive format.
I think you can do it using the ImageIO framework, like this:
Preview.app says the output file is progressive, and ImageMagick’s
identifycommand says it has “Interlace: JPEG”.