in reply to Use perl to extract GPS coordinates from a cell phone image.
use 5.010; use strict; use warnings; use Image::ExifTool ':Public'; my $filename = "MyImage.jpeg"; my $metadata = ImageInfo $filename; say "Latitude: ", $metadata->{GPSLatitude}; say "Longitude: ", $metadata->{GPSLongitude}; say "Altitude: ", $metadata->{GPSAltitude}; say "DateTime: ", $metadata->{GPSDateTime};
Works for my phone; different phones may set different EXIF keys, so you may need to experiment a little.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use perl to extract GPS coordinates from a cell phone image.
by flexvault (Monsignor) on Jan 06, 2013 at 15:29 UTC | |
by tobyink (Canon) on Jan 06, 2013 at 19:48 UTC | |
by flexvault (Monsignor) on Jan 07, 2013 at 14:03 UTC | |
by marto (Cardinal) on Jan 07, 2013 at 14:22 UTC |