Main Menu

custom tag

Started by ofelia, July 03, 2025, 01:49:02 AM

Previous topic - Next topic

ofelia

I created a custom tag named "APP",  but after writen the tag into a picture, the tag automaticaly became "App", what should I do if I want the tag to keep what it was, following is my config file:
%Image::ExifTool::UserDefined = (
    'Image::ExifTool::XMP::Main' => {
        CUSTOM => {
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::CUSTOM',
            },
        },
    },
);
%Image::ExifTool::UserDefined::CUSTOM = (
    GROUPS => { 0 => 'XMP', 1 => 'XMP-CUSTOM', 2 => 'Other' },
    NAMESPACE => { 'CUSTOM' => 'http://yourdomain.com/xmp/custom/1.0/' },
    WRITABLE => 'string',
    APP => {
      Name => 'APP',
      Writable => 'string'
    },
);

Phil Harvey

If you check the XMP, the property name is "APP".  ExifTool will normalize the case to "App" when reading unless you also use the config file when reading back the tag.

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

ofelia