Skip to content

Instantly share code, notes, and snippets.

View brendannee's full-sized avatar

Brendan Nee brendannee

View GitHub Profile
#!/bin/sh
# script for optimizing images in a directory (recursive)
# pngcrush & jpegtran settings from:
# http://developer.yahoo.com/performance/rules.html#opt_images
# pngcrush
find . -iname "*.png" | while read png
do
echo "crushing $png ..."