Some meta data fields not included in all output formats

Started by volker, March 09, 2018, 10:34:07 AM

Previous topic - Next topic

volker

Hello,

I found a strange problem with the with one of the sample camera files provided, SonySLT-A65.jpg . Depending on the output type selected, some of the meta data fields are not included in the output. I use the following commands:

exiftool -a -e -G0:1:2 -n -struct -w! txt SonySLT-A65.jpg
exiftool -a -e -G0:1:2 -n -struct -json -w! json SonySLT-A65.jpg
exiftool -a -e -G0:1:2 -n -struct -php -w! php SonySLT-A65.jpg
exiftool -a -e -G0:1:2 -n -struct -X -w! xml SonySLT-A65.jpg


These are excerpts from the generated files:

Text
  [MakerNotes:Sony:Image] Face Info Offset        : 94
  [MakerNotes:Sony:Image] Sony Image Height       : 4000
  [MakerNotes:Sony:Image] Sony Image Width        : 6000
  [MakerNotes:Sony:Image] Faces Detected          : 0
  [MakerNotes:Sony:Image] Face Info Length        : 37
  [MakerNotes:Sony:Image] Meta Version            : DC7303320222000

json
  "MakerNotes:Sony:Image:FaceInfoOffset": 94,
  "MakerNotes:Sony:Image:SonyImageWidth": 6000,
  "MakerNotes:Sony:Image:FacesDetected": 0,
  "MakerNotes:Sony:Image:FaceInfoLength": 37,
  "MakerNotes:Sony:Image:MetaVersion": "DC7303320222000",

php
  "MakerNotes:Sony:Image:FaceInfoOffset" => 94,
  "MakerNotes:Sony:Image:SonyImageWidth" => 6000,
  "MakerNotes:Sony:Image:FacesDetected" => 0,
  "MakerNotes:Sony:Image:FaceInfoLength" => 37,
  "MakerNotes:Sony:Image:MetaVersion" => "DC7303320222000",

xml
<Sony:FaceInfoOffset>94</Sony:FaceInfoOffset>
<Sony:SonyDateTime>2011:01:24 04:45:01</Sony:SonyDateTime>
<Sony:SonyImageHeight>4000</Sony:SonyImageHeight>
<Sony:SonyImageWidth>6000</Sony:SonyImageWidth>
<Sony:FacesDetected>0</Sony:FacesDetected>
<Sony:FaceInfoLength>37</Sony:FaceInfoLength>
<Sony:MetaVersion>DC7303320222000</Sony:MetaVersion>


Only XML contains all the fields documented under https://exiftool.org/TagNames/Sony.html#ShotInfo . Text output is missing the SonyDateTime, and json and php outputs are missing SonyDateTime and SonyImageHeight. Its seams a problem with the output, since if I use the -v2 option, I can verify ExifTool is reading the missing values.

My environment:
- macOS 10.12.6
- Happens with ExifTool version 10.79 and 10.83

I've discovered this problem by pure chance. I neither looked at the rest of the meta data nor the output from other files, so I can't say if this only affects this file or other files too.

Volker

Phil Harvey

Even though you added the -a option, duplicate JSON and PHP variable names are not allowed.  Use -G0:1:2:4 to create unique names for all tags.  (ie. add the family 4 group name)

- Phil
...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 ($).

volker

Ups, should have figured that out myself  :-[

Thanks, Volker