Using jpegoptim to Losslessly Compress JPEG files (on Mac using Macports)

In this video I install jpegoptim and show how to use it to recompress a bunch of jpeg files.

Installing MacPorts on a Mac: https://youtu.be/N22Ic6ZRPXI

Install jpegoptim (using Macports)
sudo port install jpegoptim
View jpegoptim Help
jpegoptim --help
View Size of Directory
du -sh
Find Jpeg Files (recursively)
find ./ -iname '*.jpg'
Optimize Jpeg Files (recursively)
find ./ -iname '*.jpg' -exec jpegoptim -p {} \;
Optimize Single Jpeg
jpegoptim -p photo.jpg
Optimize Jpegs in Single Directory
jpegoptim -o *.jpg

Leave a comment

Your email address will not be published. Required fields are marked *