Lossless compression of JPEG images with Jpegoptim

Tadashi Shigeoka ·  Tue, June 16, 2015

Lossless compression of JPEG images on Mac using Jpegoptim.

Installing Jpegoptim

brew install jpegoptim

Lossless compression of JPEG files

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

jpegoptim --strip-all sample.jpg

Batch lossless compression of JPEG files in the current directory

find . -name '*.jpg' -o -name '*.jpeg' | xargs jpegoptim --strip-all -o

Reference Information

That’s all from the Gemba.