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
That’s all from the Gemba.