Reduce PNG Graphic Size Using PNGCRUSH
Now that I'm knee-deep in MacBook I love working with command line applications. There's a certain beauty in the simplicity of using the console instead of a nice GUI. One task I use the console for often is reducing the size of PNG files using the powerhouse that is PNGCRUSH.
The Shell Script
# directive pngcrush -reduce -brute source.png destination.png #result Best pngcrush method = 113 (fm 0 zl 9 zs 0) for destination.png (33.38% IDAT reduction) (33.43% filesize reduction) CPU time used = 835.707 seconds (decoding 151.450, encoding 679.145, other 5.112 seconds)
The above directive is a basic usage of PNGCRUSH. PNGCRUSH offers a wealth of options that allow you to optimize your PNGs. If you use many PNGs on your website, optimizing them using PNGCRUSH is a must. Using the above directive, PNGCRUSH took a 11.7MB down to 7.8MB. NO QUALITY LOSS. Sure it took over 10 minutes, but think of the bandwidth your site will save.