August 22, 2024
Exif rotation on images
People often uploads photo albums to their website. I always downsize and thumbnail those images with Hugo’s image processing. However, Hugo sometimes misinterprets the exif rotation on images.
This can be solved by resetting the exif rotation and rotating the images the right way up. This is a lot of work. Fortunately, when you are using Linux, you can rely on exiftran, which does exactly that. The command is pretty straight-forward. You go to the right directory and type:
exiftran -ai *.*
That’s all!
() Joost van der Schee