Skip to content

Instantly share code, notes, and snippets.

@jingoro
Created May 7, 2013 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jingoro/5530105 to your computer and use it in GitHub Desktop.
Save jingoro/5530105 to your computer and use it in GitHub Desktop.
#!/bin/sh
for file in $*; do
jpegtran -optimize -progressive -copy none \
"$file" > "$file.tran"
mv -f "$file".tran "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment