Difference between revisions of "JPEG rotate lossless"

From Noah.org
Jump to navigationJump to search
m (Created page with 'Category:Engineering Some cameras store images in a different orientation than what is intended for display. They will add an EXIF tag to indicate that the image is rotated.…')
 
m
Line 6: Line 6:
  
 
<pre>
 
<pre>
exiftran -ai *.jpeg
+
exiftran -ai *.jpg
 
</pre>
 
</pre>
  

Revision as of 08:19, 22 June 2013


Some cameras store images in a different orientation than what is intended for display. They will add an EXIF tag to indicate that the image is rotated. It is possible to rotate a JPEG image losslessly; that is, rotate without uncompressing and recompressing the image. This is important to avoid loosing image quality.

There are a few common tools, exiftran, and jhead. I have not done a lot of testing, but it seems like exiftran is the best tool to use.

exiftran -ai *.jpg
jhead -autorot *.jpg