find . -name "__MACOSX" -exec rm -rv {} \;
find . -name "Thumbs.db" -exec rm -rv {} \;
find . -iname "*.txt" -exec perl -i -ne 's/[\n\r]//gs;print "$_\r\n"' {} \;
find . -iname "*.jpg" -exec jhead -purejpg {} \;
find . -iname "*.png" -exec optipng {} \;
