Confusion around File:ImageWidth, File:ImageHeight and other EXIF tags

Started by tbrown92030, September 08, 2017, 05:24:07 PM

Previous topic - Next topic

tbrown92030

A fundamental question is where do the values for the [File] group come from? Are they purely computed from other tags (in other groups)?

I ask because I'm looking at an image (from a Nikon d300) that reports a [File] Image Width and [File] Image Height, but in [EXIF] none of the following tags exist:
  0x0100 ImageWidth
  0x0101 ImageHeight
  0xA002 ExifImageWidth
  0xA003 ExifImageHeight

And, according the to EXIF spec, the first two are really not to be used for JPEG encoded data in the first place (they apply only to uncompressed images).

StarGeek

The File values will be decoded from the image itself and are not alterable metadata.  For example, in a jpeg, it would be decoded from the SOFn chunk, the same way an image viewer would do.

Previously, Phil has called the ExifImageWidth and ExifImageHeight superfluous and I tend to agree.  You can change them to whatever value you want and I have yet to see an image viewer pay any attention to them.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype