Image-ExifTool - Re: -if with DateTimeOriginal

Posted on Fri Apr 20 19:45:34 2007 by exiftool in response to 4941 (See the whole thread of 8)
Re: -if with DateTimeOriginal
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
Direct Responses: 4943 | Write a response