Created
May 10, 2014 23:35
-
-
Save Stasevi4/7edfff578652a51318f4 to your computer and use it in GitHub Desktop.
jpegtran
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jpegtran | |
$DIR=/path/to/folder | |
for file in $(find $DIR -type f \( -name "*.jpg" -or -name "*.jpeg" -or -name "*.JPG" \)); do | |
echo found $file for optimizing... | |
jpegtran -copy comments -optimize -progressive -outfile $file $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment