Adding a metadata tag

For my Nikon camera I would like to add the metadata tag “Picture Control Name” to the “Image information” list in lighttable.

How is that done?

I don’t think this is possible.
If you just want to see the information, a Lua script could be used to read the tag (via exiftool) and then maybe create a darktable tag for it or put it in another field.

1 Like

Beyond what I know how to do, unfortunately.

It can be done using a Lua script. I’m working on it and it has an issue, RFC: Expose User Requested Image Metadata · Issue #19973 · darktable-org/darktable · GitHub

3 Likes

Thanks, Bill

1 Like

If you can’t add the new metadata flag in darktable try it outside of dt with exiftool command.
The following example will do what you are asking for.
Create a config file in /tmp:

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::XMP::xmp' => {
        'PictureControlName' => { Writable => 'lang-alt' }, #Name => 'Picture Control Name' },
        # Text tag (can be specified in alternative languages)
        ##Text => { Writable => 'lang-alt' },
    },
);

1;

Run the exiftool command
exiftool -config '/tmp/config' -xmp-xmp:'PictureControlName'='your name goes here' '/tmp/L1002940.jpg'

The new flag will be created in the XMP namespace.
Check the new flag in the image file:

exiftool -a L1002940.jpg | grep Picture
Picture Control Name            : your name goes here
1 Like

What would be the path for this file?

It depends on your OS. I use Linux and in my example the file is in directory /tmp. The file itself is named config. The full path is /tmp/config. I guess you need to adapt the directory according to your needs.

1 Like

@01McAc You’re talking to someone that is not familiar with the process involved in your response. Just the same I appreciate your taking the time to do so.

Mike