I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-04-20 16:32:09-07 by pdi
-if with DateTimeOriginal
I am using the exif:DateTimeOriginal tag to rename fotos. Occasionally there are fotos with DateTimeOriginal set to 0000:00:00 00:00:00. In this case I want to rename them using the FileModifyDate tag. Now, when I do

exiftool -if "$exif:DateTimeOriginal eq '0000:00:00 00:00:00'" -r -s -s -s -exif:DateTimeOriginal D +IR

exiftool correctly identifies the fotos. But when I use the same condition in

exiftool -if "$exif:DateTimeOriginal eq '0000:00:00 00:00:00'" -r "-FileName<FileModifyDate" -d "%% +-.1d_%Y%m%d_%H%M%S%%-2c.%%e" "-directory=%d" DIR

exiftool reports ALL fotos as having failed the condition. I work from dos cmd, on w2k, with win executable ver 6.74 or normal 6.79.

I wonder if I'm missing something. Any ideas? Many thanks in advance.
Direct Responses: 4942 | Write a response