Batch Rotate Images According to Exif Data
In case you have a bunch of image files you’d like to automatically (losslessly) rotate in the right direction, you should give “”;http://www.sentex.net/mwandel/jhead/“ target=”_blank">jhead“ a try:
jhead -autorot *.JPG
Works pretty much as expected :D