ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Dave on September 05, 2013, 06:29:55 AM

Title: File:ImageHeight and File:ImageWidth don't take account of exif:orientation?
Post by: Dave on September 05, 2013, 06:29:55 AM
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
Title: Re: File:ImageHeight and File:ImageWidth don't take account of exif:orientation?
Post by: Phil Harvey on September 05, 2013, 07:03:54 AM
Hi Dave,

Correct.

- Phil
Title: Re: File:ImageHeight and File:ImageWidth don't take account of exif:orientation?
Post by: Dave on September 05, 2013, 10:39:35 AM
Thanks for the confirmation!

Dave