ImageOptim optimizes images — so they take up less disk space and load faster — by finding best compression parameters and by removing unnecessary comments and color profiles. It handles PNG, JPEG and GIF animations.
How to use it
Simply drag'n'drop images or folders into the window! You can also drop files on ImageOptim's Dock icon or launch it from shell scripts with:
open -a ImageOptim.app *.png.
If you install this system service you can run ImageOptim from Finder's context menu.
More about PNG
My article “PNG that works” explains why ImageOptim removes gamma information and how to get even smaller PNG files with transparency that works in ancient versions of IE.
ImageOptim is free, open-source software under terms of the GPL v2 or later. Your contributions are welcome! Please checkout/fork the source code and improve it! Feel free to contact me for assistance.
PNGOUT is bundled with permission of Ardfry Imaging, LLC and is not covered by the GPL.
- Photoshop munges optimized PNGs!
ImageOptim converts images to PNG8+alpha format when that is possible without loss of quality. That's the most efficient way to store alpha channel.
Photoshop CS5 and older have a bug which causes such images to be loaded incorrectly. The bug is fixed in Photoshop CS6.
To undo optimisations and get the big fat, old-Photoshop-compatible PNG back, open PNG in Preview.app and save it again (“Export” in Lion).
Alternatively, switch to Fireworks or only optimize copies/final versions of images.
- Will ImageOptim be in the App Store?
Unfortunately not. ImageOptim is given on terms that basically say “you can do whatever you want except taking away this freedom from others”. Apple does not allow such permissive terms. Apple requires all App Store users to accept legal restrictions in the iTunes EULA and puts DRM (copy protection) on all App Store apps.
You can get ImageOptim here, DRM-free. You can share it, modify it, use it in any country in the world, even sell it, as long as you don't forbid anybody else from doing the same.