Installing jpegtran in Ubuntu 10.10 (a.k.a. Oneiric Ocelot)

‹ Monitor gamma calibration for Linux / X.Org | Make alt tab switch between all windows in Ubuntu Unity ›

To install jpegtran in the Ubuntu 10.10 Linux distribution, you can run the following command in a terminal window/shell

sudo apt-get install libjpeg-progs

jpegtran allows lossless rotation of JPEG images.  For example, you can losslessly rotate an image 90° counterclockwise by running:

jpegtran -rotate 270 input.jpg > output.jpg

Or you can losslessly rotate an image 90° clockwise by running:

jpegtran -rotate 90 input.jpg > output.jpg

Subscribe to All Posts - Wesley Tanaka