How to install optipng for CentOS

From Brian Nelson Ramblings
Jump to: navigation, search

How to install optipng for CentOS

There are lot of online tools and apps to optimize your images, however the problem comes when you have lot of images to process, then those tools are not so well designed and we have to search for more practical ways to do it. If you have come to this point, then you must considering using Image Optimization tools from the Linux command line.

You can find the rpm to do a localinstall by using http://pkgs.repoforge.org/optipng/

Find the latest package and download it

cd /tmp/; wget http://pkgs.repoforge.org/optipng/optipng-0.6.4-1.el6.rf.x86_64.rpm
yum localinstall optipng-0.6.4-1.el6.rf.x86_64.rpm -y

Find the location of do which optipng

which optipng

Returning the location of optipng

/usr/bin/optipng