How to extract GPSlongitude and GPSlatitude value from EXIF-Header of *.jpg ?

Started by pstein, July 10, 2020, 10:08:26 AM

Previous topic - Next topic

pstein

How can I extract the
a) GPSlongitude and
b) GPSlatitude

value from EXIF-Header of an *.jpg image file?

exiftool should return ONLY the value e.g

43.007338

nothing more.


Phil Harvey

...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 ($).

StarGeek

Add a hashtag at the end of each tag to get the decimal value (see the -n (printConv) option)
-gpslatitude# -gpslongitude#

or use the -c (coordFormat) option to format the output any way you'd like.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).