Automatically rotate images
Tuesday, July 13th, 2004exiftran is a command line program that can automatically rotate images by checking the exif orientation tag set by the camera, and updates the exif information if needed. For example, to automatically rotate all jpg files in the directory, run:
$ exiftran -ai *.jpg
# -a for automatic rotate using exif orientation tag
[...]