File:ImageHeight and File:ImageWidth don't take account of exif:orientation?

Started by Dave, September 05, 2013, 06:29:55 AM

Previous topic - Next topic

Dave

Am I correct in thinking that File:ImageHeight and File:ImageWidth don't take account of exif:orientation? (It seems that way).

For a portrait image (taller than it is wide), I get:
Image Height                    : 334
Image Width                     : 500
Orientation                     : Rotate 90 CW
Orientation                     : Rotate 90 CW


So to get the correct height / width I should check the exif:orientation and swap height and width if it is of a rotate 90 or 270 type value?

Thanks

Dave

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).