in reply to Re^2: Use perl to extract GPS coordinates from a cell phone image.
in thread Use perl to extract GPS coordinates from a cell phone image.

Works out of the box for me. (HTC Explorer phone, Android 2.3.)

You could try throwing $metadata at Data::Dumper to see what's inside...

use Data::Dumper; print Dumper ImageInfo "MyImage.jpeg";
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^4: Use perl to extract GPS coordinates from a cell phone image.
by flexvault (Monsignor) on Jan 07, 2013 at 14:03 UTC

    tobyink,

    Thanks for the suggestion (which I tried), but neither picture had any GPS info. I'm running Android 2.3, so I'm going to assume that the camera's aren't set up correctly.

    Thanks...Ed

    "Well done is better than well said." - Benjamin Franklin

      As you say, perhaps the configuration is defaulting to not embedding GPS data. Which is sensible enough. IIRC there was a bug existing since at least 2.3 in which GPS data could be corrupted. 2.3 is fairly old, it may be worth while investigating the possability of running a third party ROM on your phone. I've used Cyanogenmod (or derivatives) for years on 2 different handsets.

      Update: example of the bug