Date

How to optipng a folder.

  • Install optipng
apt-get install optipng -y
  • Once installed cd to to the folder you wish to optimize
cd /var/www/img
  • Now run the optimize command,
optipng -o7 -strip all *.png
  • This will only optimize pngs in the directory you are in.
find /* -type f -name *.png | xargs optipng -o7 *.png
  • This one ^ will hunt and optimize all .png's

Comments

comments powered by Disqus