Lossless compression of PNG images with OptiPNG

Tadashi Shigeoka ·  Fri, June 12, 2015

Lossless compression of PNG images on Mac using OptiPNG.

Installing OptiPNG

brew install optipng

Lossless compression of PNG files

I use it with only the —strip all option to remove all metadata.

optipng --strip all sample.png

Batch lossless compression of PNG files in the current directory

find . -name '*.png' | xargs optipng -strip all

Reference Information

That’s all from the Gemba.