News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Custom tags and config file

Started by dacscomp, October 30, 2015, 09:38:17 AM

Previous topic - Next topic

dacscomp

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

Phil Harvey

See the sample config file 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
...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 ($).