GPS information

Started by joergens.mi, November 21, 2013, 11:32:41 AM

Previous topic - Next topic

joergens.mi

Is there a possibility to set the output for the gps to decimal in perl

I'm using this construct

use Image::ExifTool qw(:Public);
foreach (keys %$info) {
    print UPLOAD "$_ : $info->{$_}\n";
         }

the result is        GPSPosition :                    48 deg 1' 24.14" N, 7 deg 51' 53.74" E 
I would prefer this as an decimal coordinate  N48.32104 E7.34523

I'm not an perl expert.

Thanks

Phil Harvey

Yes.  Set the PrintConv option to 0.  This can be done either by a call to Option() or in the arguments to ImageInfo().

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).