|
The reason is that you've modified the value of DateTimeOriginal with the
-d option, so it no longer looks like '0000:00:00 00:00:00', but
now instead takes the form of a filename. If you want to do this, you will
have to change your test to something like:
-if "$exif:DateTimeOriginal =~ /00000000_000000/" ...
I hope this makes sense (presuming of course you understand Perl regular
expressions.. ;)
Also, you can set the filename and directory together with:
-d "%%d%%-.1d_%Y%m%d_%H%M%S%%-2c.%%e"
This saves having to assign -directory separately, but this is off
the topic of your original question.
- Phil
|