Is there a tool which can achieve high picture compression while preserving (as much as possible) the image quality and can compress images in batches, in order to make optimal images for websites?


If you want an easy to use tool, try Trimage, which can be found in the Software-Center of Ubuntu. I've also tested pngcrush and optipng but I have to say that Trimage had the best compression rate of these three tools, without having to mess around with the console :-)

sudo apt-get install trimage

I know pngcrush and optipng.

There is also pngquant and pngnq but those are lossy when the original was in truecolor.

For photos you probably want to convert to JPEG instead.

  • links removed as they were broken
    – Zanna
    Feb 16 '17 at 22:08
  • I tested optipng and pngquant, and the result is pngquant 3 times faster and save much more disk space compared to optipng.
    – Feriman
    Apr 22 '21 at 8:58

You should take a look into the new WebP format and the tool provided by Google. Is not very useful right now, but according to Google it has 40% size reduction over jpeg, without additional quality loss.




  • 1
    The examples that Google gives only prove that WebP can make files smaller when the quality is worse (duh!). There is currently no proof that it can make smaller files at the same quality when compared to JPEG (actually, most tests say it's worse than JPEG). JPEG2000 can make smaller files at the same quality, but it shares one problem with WebP: most browsers don't support it out of the box, so it's useless for use on websites...
    – JanC
    Oct 27 '10 at 21:21

I used gimp and followed these instructions: http://docs.gimp.org/en/gimp-tutorial-quickie-jpeg.html

When using Trimage I only got a 2.5% improvement on a 2Mb file but with gimp and exporting as jpeg and dialing the quality down to 10 I got a 2Mb file down to 200Kb or ~90% improvement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.