|
Phil,
I use PhotoMechanic to Geotag my RAW images, which does set the GPSVersionID. I have some TIF's and JPG's that seem to have the GPS coords but are missing the VersionID so I'm fixing these images.
I'm writing a shell script (bash, OSX) to test all my images for the correct value but am noticing some inconsistencies if the tag is not present. The exiftool command i'm using is:
exiftool -filename -if 'not $gpsversionid eq "2.2.0.0"' DIR
If a file has a GPSVersionID tag which is not equal to 2.2.0.0 then this command works. If the file has no GPSVersionID tag at all then it fails - if I add -v2 I see the message:
Condition: Use of uninitialized value $info{"gpsversionid"} in string eq - ./IMG_0256.jpg
for each image.
Can you suggest a test that will work for the wrong value and also for images that don't have the tag at all?
Mark
|