[Originally posted by andbaum on 2008-04-14 16:06:46-07]
Hi,
I want to change the EXIF infos of my photos according to some camera-written data.
I have got a "Minolta AF 100mm F2.8 Macro" which is tagged as "Minolta/Sony AF 100mm F2.8 Macro New"
I change this with:
exiftool -lens="Minolta AF 100mm F2.8 Macro" -if '$LensID eq "Minolta/Sony AF 100mm F2.8 Macro New"' *dng
Besides, I use a "Sigma AF 180mm F3,5 EX APO Makro" which is also tagged as "Minolta/Sony AF 100mm F2.8 Macro New"
Therefore I need to look at the Focal Length as well in my "if"-case.
Like:
exiftool -lens="Minolta AF 100mm F2.8 Macro" -if '$LensID eq "Minolta/Sony AF 100mm F2.8 Macro New" AND $FocalLength eq "100mm"' *dng
exiftool -lens="Sigma AF 180mm F3,5 EX APO Makro" -if '$LensID eq "Minolta/Sony AF 100mm F2.8 Macro New" AND $FocalLength eq "180mm"' *dng
Can I do this with exiftool? If yes, how?
Thanks in advance,
Andreas
[Originally posted by exiftool on 2008-04-14 19:33:18-07]
Hi Andreas,
You can do this in two ways:
1) Exactly as you have done, except using "and" instead of "AND".
(logical operators in Perl are all lowercase).
2) Use a separate -if statement for each condition.
All -if conditions must be satisfied for
a file to be processed.
- Phil