[Originally posted by exiftool on 2008-03-17 11:20:28-07]Assuming you are talking about the IPTC Caption-Abstract, this
will do it for you:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::Composite' => {
MyCaption => {
Require => 'Caption-Abstract',
ValueConv => '$val=~s/^\S+2008\s*//; $val',
},
},
);
1; #end
This removes non-space characters up to "2008", and any following
spaces at the start of the caption.
Then use this command to edit the file to remove the date:
exiftool "-caption-abstract<myCaption" a.jpg
- Phil