Is there a way to show tag and description together in one line?

Started by norbertj, July 06, 2025, 07:17:05 AM

Previous topic - Next topic

norbertj

Let me first describe the scenario, which leads to my question:
I want to see the meta data in German, so I start ExifTool with -lang de. I see an entry, which I want to change, but I do not see the tag, which is necessary for writing. When using English, in many cases the tag can be guessed from the description, but that does not work with German.
I found a workaround: using -G:1:5:7 I get something like "Nikon:JPEG-APP1-IFD0-ExifIFD-MakerNotes-VRInfo:ID-0" which probably is unique, but this is nothing which can be used for writing. So running ExifTool again with -G:1:5:7 -s and then searching for "Nikon:JPEG-APP1-IFD0-ExifIFD-MakerNotes-VRInfo:ID-0" will give me the tag for writing.

I am including ExifTool in an Windows application using ExifToolWrapper. If there is no way now to get tag and description together using the ExifTool Application: is there a way to achieve this using the Perl library directly?

Phil Harvey

I would suggest using the JSON output format:

exiftool -j -l -lang de FILE

This gives both the tag name and the description in German.  But you probably want to add some -G option to this command so you know what group to use for writing.

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

norbertj

Hello Phil,
thanks a lot for the fast reply. As I have almost no experience with JSON it took me a while to implement your suggestion. But now I got it working and it delivers exactly what I need. As you suggested I added -G1 to have the specific group for writing.