MeteringMode seems to be wrong

Started by PaulPanter, May 21, 2024, 03:39:04 PM

Previous topic - Next topic

PaulPanter

If i use PHP with exif_read_data(), i get for some image the value 5 for MeteringMode. But with
exiftool "path/to/IMG_4667.jpg" -MeteringMode -n i get the value 3 for the same file. 5 is the correct value. Do someone have a idea, why this happens and i get the wrong value with exiftool 12.57?

StarGeek

Use the command in FAQ #3 as your base command so you can see all the tags with that name and the groups they belong to.

exiftool -G1 -a -s -n -MeteringMode /path/to/files/

MeteringMode can appear in several different groups, include the Makernotes from different cameras. It's quite possible that without the -a (-duplicates) option you are seeing the MeteringMode from a different group.
* 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).

PaulPanter

Ahhhhh, have found a solution. You are my hero: exiftool "path/to/IMG_4667.jpg" -ExifIFD:MeteringMode -n