Installing JPEGTRAN on Linux [cPanel]

JPEGtran allows to optimize JPEG images.

You can always find latest packages on their website.

root@server # cd /usr/local/src

root@server [/usr/local/src]#

Go to and download latest version.

root@server [/usr/local/src]# wget

root@server [/usr/local/src]# tar -zxf jpegcrop.tar.gz

root@server [/usr/local/src]# cd jpegcrop

root@server [/usr/local/src]# cd jpeg-9a/

root@server [/usr/local/src]# ./configure

configure: creating ./config.status
config.status: creating Makefile
config.status: creating jconfig.h
config.status: jconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands cd /usr/local/src/

root@server [/usr/local/src]# sudo make install

root@server [/usr/local/src/]# jpegtran -h
usage: jpegtran [switches] [inputfile]
Switches (names may be abbreviated):
-copy none Copy no extra markers from source file
-copy comments Copy only comment markers (default)
-copy all Copy all extra markers
-optimize Optimize Huffman table (smaller file, but slow compression)
-progressive Create progressive JPEG file

You are done!!

Leave a Reply

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.