[Originally posted by andbaum on 2008-04-07 15:40:29-07]
I want to change the EXIF Lens information according to the recorded info. I always get the same error message. Can you help me? I'm running exiftool on a mac.
$ exiftool -v5 -lens="Lensbaby 2.0" -if '$lens eq "Unknown (65535)"' 2008_07_07_test_03535.dng
Writing Sigma:Lens if tag exists
Not enough values specified (4 required) for Nikon:Lens
Writing XMP-aux:Lens
Writing ExifIFD:Lens if tag exists
Not enough values specified (4 required) for Nikon:Lens
Condition: Use of uninitialized value in string eq - 2008_07_07_test_03535.dng
-------- 2008_07_07_test_03535.dng (failed condition)
1 files failed condition
Andreas
[Originally posted by exiftool on 2008-04-07 15:49:52-07]
The tag "Lens" does not exist in your image. Do you mean
LensType or LensID instead? Also, to anticipate the next problem,
tags like LensType and LensID can't be set to arbitrary strings.
But if the -if condition passes in your command above,
the result would be to set the XMP:Lens tag, which is fine.
- Phil
[Originally posted by andbaum on 2008-04-08 05:07:03-07]
Thank you!
$ exiftool -lens="Lensbaby 2.0" -if '$LensID eq "Unknown (65535)"' *dng
solved my problem.
Andreas