Skip to content

Instantly share code, notes, and snippets.

@ciases
Created January 25, 2017 08:32
Show Gist options
  • Save ciases/43e84c3d4c5020cc2d3a5c72b8ab9ae7 to your computer and use it in GitHub Desktop.
Save ciases/43e84c3d4c5020cc2d3a5c72b8ab9ae7 to your computer and use it in GitHub Desktop.
Image optimization tools (online, offline)

There are also online tools which can help you optimize your pictures with loss of quality, by performing safe automatic tasks:

If you are at ease with command line tools, you can use these:

  • Pngnq: converts 24-bit PNG files into 6 to 8-bit ones, by only keeping the needed colors. Download: http://pngnq.sourceforge.net/ Sample command line: pngnq -vf -s1 image.png

  • OptiPNG: tests several compression methods on a PNG file in order to find the best one. Download: http://optipng.sourceforge.net/ Sample command line: optipng -o7 image-nq8.png

  • pngcrush: another PNG optimization tool. Download: http://pmt.sourceforge.net/pngcrush/ Sample command line: pngcrush image.png -rem all -reduce -brute result.png

  • jpegtran: performs lossless operations on JPEG images. Download: http://jpegclub.org/jpegtran/ Sample command line: jpegtran -copy none -optimize -perfect src.jpg dest.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment