exiftran in Gentoo
Tuesday, August 16th, 2005exiftran is a command line utility to transform jpeg images. It can rotate images automatically by checking the exif orientation tag. In Gentoo it is part of the fbi package.
$ emerge fbi
$ exiftran -ai *.jpg
# -ai for automatic in-place transformation