ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: neebah on August 03, 2021, 09:52:07 AM

Title: TagNum in CSV Export
Post by: neebah on August 03, 2021, 09:52:07 AM
I'm using the following command to print all of the metadata into a CSV file

exiftool -a -G:0:1:2:3 *.* -r DIR

I would like my output to also include the tag ID in the header row.  Is there a way to do this?
Title: Re: TagNum in CSV Export
Post by: StarGeek on August 03, 2021, 11:43:47 AM
Is the G7 option what you're looking for?  See this post (https://exiftool.org/forum/index.php?topic=11502.0) where Herb asks a lot of good questions as to the details of the group.
Title: Re: TagNum in CSV Export
Post by: neebah on August 03, 2021, 02:41:45 PM
I'm not sure.  So a sample column from the CSV reads

Exif:IFD0:Camera:Make

I would like it to be something like this

Exif:IFD0:Camera:Make (0x10F)

in the column header
Title: Re: TagNum in CSV Export
Post by: StarGeek on August 03, 2021, 11:50:20 PM
I don't think that's possible.  The -G7 option doesn't give the ID in hex.  It returns it as decimal.  So for Make it returns ID-271.  Adding it to your example, -G:0:1:2:3:7 would print as EXIF:IFD0:Camera:Main:ID-271:Make
Title: Re: TagNum in CSV Export
Post by: neebah on August 04, 2021, 06:57:41 AM
No problem.  Doesn't need to be in HEX.  Thank you