HowTo Optimize and Compress JPEG in Bulk via Command Line

Install jpegoptim

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum --enablerepo=epel install jpegoptim

Optimize all JPG files in bulk

find /path/to/files/ -name *.jpg -exec jpegoptim --strip-all '{}' \;

Leave a Reply

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