jpegoptim is an open source image optimizer for JPEG image format.
https://github.com/tjko/jpegoptim
You can download latest version of from
https://www.kokkonen.net/tjko/projects.html
To install jpegoptim, run
cd /usr/local/src/ wget https://www.kokkonen.net/tjko/src/jpegoptim-1.4.6.tar.gz tar xvf jpegoptim-1.4.6.tar.gz jpegoptim-1.4.6/ ./configure make make install