Problem with Exif Image Height/Width and Image Height/Width

Started by John McGinlay, March 04, 2024, 11:22:15 AM

Previous topic - Next topic

John McGinlay

I used exiftools to export info to a text file to determine the physical dimensions of a file. Both  Exif Image Height and Image Height and Exif Image Width and Image Height both show the same values 1533 and 1094 respectively. The image seems to be much larger than that.

I then submitted the file to an on-line exif tool and the Exif Image Width And Height agree but the ImageWidth and ImageLength values were different and looked more like the correct values. I have included the exiftool data and the data from exifreader along with the image file.

 

StarGeek

EXIF:ExifImageWidth/EXIF:ExifImageHeight (called PixelXDimension/PixelYDimension by the EXIF standard) are simply tags in the file and can be set to any value and are only accurate if the program creating or resizing the image properly sets them. This doesn't happen with a lot of programs.

IMO, these are useless tags, and I don't think I've ever found a program that reads them.  Instead, programs will read the actual image dimensions from the image data itself.

Using the command in FAQ #3, the actual image size will be found in the File:ImageWidth/File:ImageHeight tags.  For example:
[File]          ImageWidth                      : 1749
[File]          ImageHeight                     : 1205

* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).