ExifTool Forum

ExifTool => Newbies => Topic started by: dacscomp on October 30, 2015, 09:38:17 AM

Title: Custom tags and config file
Post by: dacscomp on October 30, 2015, 09:38:17 AM
Hi

I read with interest the 'Create Custom tags' post which, I have tried and successfully created a single Custom tag...

I used the following config file:

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::IPTC::ApplicationRecord' => {
        200 => {
            Name => 'Custom1',
            Format => 'string[0,255]',
        },
    },
);
1; #end


I want to define 2 more custom tags for my update...

What is the syntax for adding these to the config file (is there a link to the definition for the config file?)

...Thanks in advance - excellent program
Title: Re: Custom tags and config file
Post by: Phil Harvey on October 30, 2015, 09:55:35 AM
See the sample config file (https://exiftool.org/config.html) for examples of how to create various user-defined tags.

To add more IPTC ApplicationRecord tags, you would do something like this:

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::IPTC::ApplicationRecord' => {
        200 => {
            Name => 'Custom1',
            Format => 'string[0,255]',
        },
        201 => {
            Name => 'Custom2',
            Format => 'string[0,255]',
        },
    },
);
1; #end


- Phil