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 2008-04-12 18:31:41-07 by mixx
Conditional processing (-if) question
Good evening,

I am ashamed but need to ask this question, as for the life of me I can not figure out what I am doing wrong. I'd like to go through all my files and fix up old images to put in there the FocalLengthin35mmFormat. I wrote a new tag in .exiftool_config that computes that value by multiplying FocalLength with the appropriate number. It is called Foc6. Now I want to do

exiftool "-Foc6>FovalLengthIn35mmFormat" -if '$model eq "DMC-FZ5"' test.jpg

This should work and it does on a single image without the -if part. It seems that the -if part does not match any image, even though I have thousands of them. I tried all other $models and also $makes and non of them matches. I also tried other operators such as "ne" they do not work either. It seems that I have an -if problem. I also tried running in a shell (and not DOS), that does not help either.

What can be wrong? I run the latest version as a Windows executable.

Thanks for any help, Mixx

Direct Responses: 7651 | Write a response