Tool for lossless image compression

Inquisitive picture Inquisitive · Jun 27, 2012 · Viewed 10k times · Source

Running Google Page Speed on a public site , I saw some suggestions by the tool like the following :

Losslessly compressing http://g-ecx.images-amazon.com/images/G/01/electronics/detail-page/Acer-120x120._V137848950_.gi could save 4.8KiB (26% reduction) and they also provide a link to the optimized content.But they do it on a per image basis. I saw some significant reduction on file sizes after compression. So the question is :

Is there any tool or web service that I can use so that I give it a directory of uncompressed images(say .gif) and it returns me a directory of images with all of them compressed?

I found a somewhat related question on SO here but it is not an exact duplicate.

Thanks for reading.

Answer

BrianC picture BrianC · Jul 11, 2012

On the Mac, I've had good success with ImageOptim. It handles PNG, JPEG, and GIF files in a drap & drop manner and can also process entire directories. It's also open-source and available in multiple languages.

On Windows, I've used both PngOptimizer and PNGGauntlet. Unlike ImageOptim, these programs will convert other formats to PNG, so if your goal is to reduce a GIF or JPEG and have it stay in that format, these won't be an option.

You could also try the Yahoo web site/service smush.it which can handle single file uploads as well as a directory zip.