Index / Questions / How do you automatically rotate photos b

How do you automatically rotate photos based on EXIF orientation on Linux?

Answer

On Debian GNU/Linux I read the orientation with exiftool and then apply the matching rotation with ImageMagick's convert command. A small bash script chains the two, so the image bytes match how the camera was held.

Sources