How to get the IPTC Record Number

Started by dbuchhorn, August 30, 2018, 07:35:00 AM

Previous topic - Next topic

dbuchhorn

How to get the IPTC record number for a tag value? With the "-g -j -l -H" option the output is printed in json format and each tag contains an id field. But the id contains only the dataSetNumber.
The recordNumber is one byte and the dataSetNumber is one byte too (IPTC spec). It is possible to include the recordNumber in the id, because it should fit?

Thanks

Dirk

Phil Harvey

Hi Dirk,

Add the -t option to get the table name for these tags.  You can use this lookup to convert these to record numbers:

"IPTC::EnvelopeRecord" => 1
"IPTC::ApplicationRecord" => 2
"IPTC::NewsPhoto" => 3
"IPTC::PreObjectData" => 7
"IPTC::ObjectData" => 8
"IPTC::PostObjectData" => 9
"IPTC::FotoStation" => 240

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

dbuchhorn

Thanks, that's exactly what I need. :D

Dirk