Created
April 7, 2013 10:43
-
-
Save siddartha/5329963 to your computer and use it in GitHub Desktop.
Script SHELL à placer à la racine du dossier d'images à optimiser.
This file contains 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
#!/bin/sh | |
# optiJPG.sh: a sample shell script to launch JPG optimisation | |
# via: find ./ -type f -name '*.jpg' -exec ./optiJPG.sh {} \; | |
# TODO define usage function | |
for f; do | |
jpegtran -copy none -optimize -perfect -outfile $f $f | |
echo $f OK.. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment