Skip to content

Commit

Permalink
make 90 the default quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan P.C. McQuen committed Oct 17, 2014
1 parent eaff2b7 commit e98cb76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions imgult
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
## (slackware already has jpegtran,
## although it will check for the mozjpeg version)

JPEGOPTIMQUALITY=m90

read -p "Would you like to BACKUP the original files? [y/N]: " response
case $response in
[yY][eE][sS]|[yY])
Expand Down Expand Up @@ -41,7 +43,7 @@ else
find . -name "*.jpeg" -type f -exec jpegtran -verbose -outfile {} {} \;
fi

find . -name "*.jpg" -type f -exec jpegoptim -m65 {} \;
find . -name "*.jpeg" -type f -exec jpegoptim -m65 {} \;
find . -name "*.jpg" -type f -exec jpegoptim -$JPEGOPTIMQUALITY {} \;
find . -name "*.jpeg" -type f -exec jpegoptim -$JPEGOPTIMQUALITY {} \;
find . -name "*.png" -type f -exec optipng {} \;

0 comments on commit e98cb76

Please sign in to comment.