Image-ExifTool - Re: edit keywords

Posted on Sun Oct 5 21:23:33 2008 by exiftool in response to 8959 (See the whole thread of 6)
Re: edit keywords
You can do any sort of value manipulations that you want with user-defined tags. The following config file will do what you are looking for:

%Image::ExifTool::UserDefined = ( 'Image::ExifTool::Composite' => { NewKeywords => { Require => 'Keywords', ValueConv => q{ my @list = ref $val eq 'ARRAY' ? @$val : ($val); tr{/}{.} foreach @list; return \@list; } }, } );

And use this command line to fix your keywords (where FILE is one or more files or directory names):

exiftool "-keywords<newkeywords" FILE

Read the config file documentation for details on how to install a config file.

I hope this helps.

- Phil
Direct Responses: 9010 | Write a response