How to install OptiPNG on Ubuntu 16.04

# compile

mkdir -p "$HOME/tmp/tar_gz"
cd "$HOME/tmp/tar_gz"
if [[ ! -f "$HOME/tmp/tar_gz/optipng-0.7.7.tar.gz" ]]; then
  wget -O "$HOME/tmp/tar_gz/optipng-0.7.7.tar.gz" "http://prdownloads.sourceforge.net/optipng/optipng-0.7.7.tar.gz"
fi
tar xf "$HOME/tmp/tar_gz/optipng-0.7.7.tar.gz"
cd "$HOME/tmp/tar_gz/optipng-0.7.7"
make clean
make distclean
./configure
make

# install

sudo make install
sudo ldconfig

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.