ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:32 AM

Title: Custom Tags
Post by: Archive on May 12, 2010, 08:54:32 AM
[Originally posted by jaypng on 2009-03-16 18:57:08-07]

I'm trying to create a new custom tag. It will them be filled with the filename. I adapted the config file from http://www.exiftool.org/config.html. This is what remains:

Code:
   # XMP tags may be added to existing namespaces:
    'Image::ExifTool::XMP::xmp' => {
        Oldname => { Groups => { 2 => 'Author' } },
    },

I the tried the following at command prompt:

exiftool -oldname=test *.jpeg

exiftool -xmp:oldname=test *.jpeg

exiftool -xmp-dc:oldname=test *.jpeg

Every time returns with Tag Oldname does not exist...

What I'm doing wrong?

Yes I created the config file with the dot and everything and put it in the same folder where exiftool is. It reads the file, the first time it come up illegal something at line something.
Title: Re: Custom Tags
Post by: Archive on May 12, 2010, 08:54:32 AM
[Originally posted by exiftool on 2009-03-16 21:55:17-07]

User-defined tag must be inside %Image::ExifTool::UserDefined,
so the config file should look like this:

Code:
%Image::ExifTool::UserDefined = (
    # XMP tags may be added to existing namespaces:
    'Image::ExifTool::XMP::xmp' => {
        Oldname => { Groups => { 2 => 'Author' } },
    },
);
1; #end

- Phil