How to install jpegoptim on a Cpanel server CentOS6 or CentOS7

What is jpegoptim?

jpegoptim is a utility for optimizing JPEG files. It provides lossless optimization (based on optimizing the Huffman tables) and “lossy” optimization based on setting a maximum quality factor.

Github page: https://github.com/tjko/jpegoptim

Tar files: http://www.kokkonen.net/tjko/projects.html


 

How to install jpegoptim

cd /usr/local/src/
wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
zcat jpegoptim-1.4.3.tar.gz | tar xf -
cd jpegoptim-1.4.3
./configure
make
make strip
make install

 

Test with:

jpegoptim -V
jpegoptim v1.4.3  x86_64-unknown-linux-gnu
Copyright (c) 1996-2015, Timo Kokkonen