Skip to content

Instantly share code, notes, and snippets.

@nekhbet
Forked from Mad182/optimize.sh
Last active August 29, 2015 14:14
Show Gist options
  • Save nekhbet/119c886dfcb87d8b74fb to your computer and use it in GitHub Desktop.
Save nekhbet/119c886dfcb87d8b74fb to your computer and use it in GitHub Desktop.
#!/bin/bash
optimize() {
jpegoptim *.jpg --strip-all
optipng *.png
for i in *
do
if test -d $i
then
cd $i
echo $i
optimize
cd ..
fi
done
echo
}
optimize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment