VGMaps

General Boards => Mapping Tips/Guides => Topic started by: avalanch on October 07, 2014, 02:16:34 PM



Title: Something to try for image smushing
Post by: avalanch on October 07, 2014, 02:16:34 PM
https://wordpress.org/plugins/ewww-image-optimizer/

Basically, you install wordpress and point it to a folder to optimize.  I think this can be done in 2 ways.  Optimizing locally or with a paid cloud service.... which I haven't looked into the paid option yet.  Just happened to stumbleupon it today and it reminded me of vgmaps, it might be a good choice to help cut down some of the image sizes.  No need to even keep WP installed after it's finished since that's all this mod requires to run.


Title: Re: Something to try for image smushing
Post by: denilsonsa on April 18, 2015, 12:48:57 PM
I know this topic is a bit old, but I see no reason to install WordPress and that plugin just to losslessly optimize images.

It is possible to just run "optipng" (or "pngcrush", or any tool) through "find" and "xargs" (http://stackoverflow.com/questions/21801085/optimize-images-in-directory-using-multiple-cpu-cores), even using all cores available in the machine.

Here is a list of tools I've found (some of them are also used by the WordPress plugin mentioned above):

  • ImageOptim (https://imageoptim.com/) - GUI for Mac OS X that uses several other tools
  • ImageOptim-CLI (https://github.com/JamieMason/ImageOptim-CLI) - command-line tool for Mac OS X
  • PNGGauntlet (http://pnggauntlet.com/) - GUI for Windows that uses several other tools
  • Trimage (http://trimage.org/) - GUI for Linux that uses several other tools
  • PNGOUT (http://www.advsys.net/ken/util/pngout.htm) and PNGOUTWin (http://www.ardfry.com/pngoutwin/) - command-line and GUI for Windows
  • OptiPNG (http://optipng.sourceforge.net/) - command-line tool, known to be one of the best
  • Pngcrush (http://pmt.sourceforge.net/pngcrush/) - command-line tool (one of the oldest for this purpose)
  • PNGOptim (https://github.com/yumeyao/pngoptim) - command-line tool for Windows that uses PNGOUT and Zopflipng
  • zopfli (https://github.com/google/zopfli/tree/master/src/zopflipng) - command-line tool, supposedly the best available
  • Jpegoptim (http://www.kokkonen.net/tjko/projects.html) - command-line lossless and lossy JPEG optimization tool
  • mozjpeg (http://calendar.perfplanet.com/2014/mozjpeg-3-0/) - optimized JPEG compression library
  • scour (http://www.codedread.com/scour/) - command-line tool to optimize SVG files
Of course, there may be others, but I hope this list is useful.