Posted on 2009-05-13 12:15:19-07 by pixelpicker
Creating custom tags for keywords caption and headline...
Hello to all & special to Phil,

I want to create a second set for keywords caption and headline in the IPTC group to store corresponding information from another language.
What I tried up to now is to define a new set of tags in the .config file like this:

%Image::ExifTool::UserDefined = ( # IPTC tags are added to a specific record type (ie. application record): 'Image::ExifTool::IPTC::ApplicationRecord' => { 301 => { Name => 'EKeywords', Format => 'string[0,64]', }, 302 => { Name => 'ECaption-Abstract', Format => 'string[0,4000]', }, 303 => { Name => 'EHeadline', Format => 'string[0,600]', }, }, );

In a first test I tried to copy the corresponding data outof the common iptc group into this new iptc tags with:

exiftool "-IPTC:ekeywords<keywords" "-IPTC:ecaption-abstract<caption-abstract" "-IPTC:eheadline<hea +dline" DIR

Exiftool seems to do its job, but when I look into the metadata with: -a -G1 -s and with: -U I cant't find the new tags. I know that wit the keywords is a problem cause its a list tag but with both others it should have worked.
Could anybody give me a hint?

Many greetings from
pixelpicker
Direct Responses: 10688 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.