Last active
August 29, 2015 14:04
-
-
Save t-richards/f14bf9f777b655fb8c2d to your computer and use it in GitHub Desktop.
Wrapper for jpegoptim: Strips all markers from output file, force-overwrites original file.
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
#!/usr/bin/env bash | |
if [ $# -eq 0 ] | |
then | |
echo "Usage: optim <jpegfile(s)>" | |
exit | |
fi | |
for img in "$@" | |
do | |
jpegoptim -f --strip-all "$img" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment