Skip to content

Instantly share code, notes, and snippets.

@siddartha
Created April 7, 2013 10:43
Show Gist options
  • Save siddartha/5329963 to your computer and use it in GitHub Desktop.
Save siddartha/5329963 to your computer and use it in GitHub Desktop.
Script SHELL à placer à la racine du dossier d'images à optimiser.
#!/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