Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

Fedora Tips

by Krishnan Subramanian

2004-01-22 Fedora Tips 21:
The program jpegtran in the libjpeg package will rotate jpeg images without losing any quality. When I rotate images from my digital camera, I don't want to lose any more data than I have already by not using raw format.

Here is the command to rotate an image from the jpegtran man page:

              jpegtran -rot 90 -trim foo.jpg > foo90.jpg
              jpegtran -rot 270 -trim foo.jpg > foo90.jpg
This will keep the original jpeg data and not lose any information. - submitted by Richard A. Bray.