[Originally posted by exiftool on 2009-02-20 11:32:27-08]Hi Michael,
You can do this with a user-defined tag created with a config
file something like this:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::Composite' => {
MyShutterCount => {
Require => 'ShutterCount',
ValueConv => 'substr("0000$val", -4)',
},
},
);
1; #end
And this command line:
exiftool -d %y%m "-filename<$dateTimeOriginal$myShutterCount.jpg" -ext jpg DIR
where
DIR is the name of the directory containing the images.
Note: Use single quotes in the command line instead of double quotes
if you are running on a Mac or Linux.
See the
config
file documentation for instructions on how to install the config file.
- Phil