Image optimize

Run optipng to optimize png files in directory:
for i in `ls`; do optipng -i0 -o7 -zm1-9 $i; done

Run optipng for a single file:
/usr/bin/optipng -i0 -o7 -zm1-9 upload/banner/kaspi132px.png

Run jpegoptim for a single file:
/usr/bin/jpegoptim –strip-all upload/banner/kaspi132px.jpg

Run gifscle for a single file:
/usr/bin/gifsicle -b -O2 upload/banner/kaspi132px.gif

Leave a Reply