TagNum in CSV Export

Started by neebah, August 03, 2021, 09:52:07 AM

Previous topic - Next topic

neebah

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?

StarGeek

Is the G7 option what you're looking for?  See this post where Herb asks a lot of good questions as to the details of the group.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

neebah

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

StarGeek

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
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

neebah

No problem.  Doesn't need to be in HEX.  Thank you