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 2009-11-12 02:11:54-08 by msbc
Updating Lens tag fails using -if option
Hi,

I'm updating some NEF's to add Lens data after using a manual focus lens. I'm also using the -if option to only process NEF's missing this data in a folder.

I've found that the following command works as expected:
exiftool -P -Lens="21mm f/2.8" -MaxApertureValue="2.8" -FNumber=11 -FocalLength=21 Zeiss.NEF
Then, executing
exiftool -Lens -MaxApertureValue -FNumber -FocalLength -ext NEF .
I get
======== ./Zeiss.NEF Lens : 21mm f/2.8 Max Aperture Value : 2.8 F Number : 11.0 Focal Length : 21.0 mm
But, if I use an -if option as follows (FNumber does equal 0 for these files):
exiftool -P -Lens="21mm f/2.8" -MaxApertureValue="2.8" -FNumber=11 -FocalLength=21 -n -if '$FNumber eq 0' Zeiss.NEF
Then the result is:
======== ./Zeiss.NEF Lens : 0mm f/0 Max Aperture Value : 2.8 F Number : 11.0 Focal Length : 21.0 mm
Three tags are updated but Lens is not.
exiftool 7.99 on OSX 10.5.8
Direct Responses: 11749 | Write a response