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.
exiftool -gpslatitude -gpslongitude -s -S -ext jpg DIR
- Phil
Add a hashtag at the end of each tag to get the decimal value (see the -n (printConv) option (https://exiftool.org/exiftool_pod.html/exiftool_pod.html#n---printConv))
-gpslatitude# -gpslongitude#
or use the -c (coordFormat) option (https://exiftool.org/exiftool_pod.html#c-FMT--coordFormat) to format the output any way you'd like.