I have a photo blog where I use a script to differentiate between landscape and portrait photos (because they’re displayed in different part of the page). I used to shoot with a Fujifilm X-T2 and mostly the script worked by looking at the EXIF orientation.
However, now I shoot with a Fujifilm X-T5 and both landscape and portrait photos have an EXIF Orientation of “Horizontal (normal)”. I’ve verified that in both my script and MetaImage whereas X-T2 images had either:
- Rotate 270W (Portrait)
- Horizontal (normal) (Landscape)
Is there some other way I can programmatically determine the correct orientation of the photo?