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 2010-01-15 21:25:36.042776-08 by msbc in response to 12198
Re: Format of GPSVersionID
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
Direct Responses: 12201 | Write a response