Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool for lossless image compression [closed]

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.

like image 792
Inquisitive Avatar asked Jun 27 '12 07:06

Inquisitive


People also ask

What is best for lossless compression?

The most successful compressors are XM and GeCo. For eukaryotes XM is slightly better in compression ratio, though for sequences larger than 100 MB its computational requirements are impractical.

Can an image be compressed and still lossless?

Lossless compression means that you reduce the size of an image without any quality loss. Usually, this is achieved by removing unnecessary metadata from JPEG and PNG files.

What is the most popular lossless image compression format?

In image compression, PNG is a well-known lossless format. An alternative to lossless compression is lossy compression, which is often used when compressing photos. JPEG is probably the most well-known lossy image format.


2 Answers

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.

like image 150
BrianC Avatar answered Oct 11 '22 17:10

BrianC


The best tool for losslessly compressing images for the web (JPG, PNG and GIF) is FileOptimizer. It can compress images up to 10% of its original size sometimes. A few of the better online tools are this compressor for PNG's and this one for JPG's.

I would go with the FileOptimzer if you have a lot of images though. If you have just a few it's easier to use the online tools.

like image 42
William Dresker Avatar answered Oct 11 '22 16:10

William Dresker