|
I like your idea of being able to set the date-only or time-only tags from
a date-time tag. But you can do what you want with the current ExifTool
by adding a couple of user-defined Composite tags to the .ExifTool_config
file:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::Composite' => {
DateOnly => {
Require => {
0 => 'CreateDate',
},
ValueConv => '$val[0] =~ s/ .*//; $val[0]',
},
TimeOnly => {
Require => {
0 => 'CreateDate',
},
ValueConv => '$val[0] =~ s/.* //; $val[0]',
},
},
);
Then the command line is:
exiftool -tagsfromfile src.tif -IPTC:All '-DateOnly>DateCreated' '-TimeOnly>TimeCreated' dst.tif
Read the comments in the "ExifTool_config" file for more details about
how the config file works.
Also, I should mention (although it doesn't relate to your problem) that
the original problem from the first message in this thread can now easily
be solved since ExifTool now has the ability to write back tags to a deleted
group.
- Phil
|