|
Stupid me. This is easy to do with a user-defined tag:
'Image::ExifTool::Composite' => {
NewCaption => {
Require => 'Caption-Abstract',
ValueConv => '$val =~ s/\bkid\b/child/g ? $val : undef',
},
},
With this user-defined tag, just use "-caption-abstract<newCaption"
to convert the caption. If the word 'kid' is not found, then the tag
will not be changed. Read up on the config file documentation for
help on installing the user-defined tag.
Sorry for not thinking about this earlier. You can do nearly anything
with user-defined tags.
- Phil
|