ExifTool Forum

General => Metadata => Topic started by: banana123 on February 25, 2024, 07:11:49 AM

Title: extracting IFD for eact metadata field
Post by: banana123 on February 25, 2024, 07:11:49 AM
Hi guys,
is there any flag to get each field IFD along with the field name and value?
For example, for DateTimeOriginal ill get the EXIF ifd and for ProcessingSoftware get the 0th.
Currently I'm using '-b, -u' flags.
Later I want to parse it using Python to an object that will contain the key, ifd, offset, value and more..
Thanks guys!!
Title: Re: extracting IFD for eact metadata field
Post by: StarGeek on February 25, 2024, 10:07:50 AM
I'm not sure I understand, since you mention the -b (-binary) option (https://exiftool.org/exiftool_pod.html#b---b--binary---binary), but maybe FAQ #3 (https://exiftool.org/faq.html#Q3)?  The -a (-duplicates) option (https://exiftool.org/exiftool_pod.html#a---a--duplicates---duplicates) to get duplicates so you get all the data and the -G (-groupNames) option (https://exiftool.org/exiftool_pod.html#G-NUM-:NUM...--groupNames) to get the individual group names.

C:\>exiftool -G1 -a -s -ModifyDate "y:/!temp/!Dump/test.ARW"
[IFD0]          ModifyDate                      : 2021:05:13 08:51:52
[XMP-xmp]       ModifyDate                      : 2021:05:13 08:51:52-07:00
[IFD1]          ModifyDate                      : 2021:05:13 08:51:52