Sometimes I have to extract Exif information from images, mostly the GPS coordinates. The coordinates coming raw from the images are not very helpful. Let’s look at a picture I took today:

darktable shows the following coordinates:
| |
Now that is not very helpful, because neither OpenStreetMap nor Google recognize this format out of the box:
| |


Bummer. And I don’t have the time or energy to fix that every time I need the coordinates. Luckily exiftool can output the coordinates in different formats, which is super helpful. For my use cases I choose the Degrees.MinutesSeconds format, also named “Decimal degrees”, or DD. This format shows latitude and longitude geographic coordinates as decimal fractions of a degree.
| |
The explanation for the options used here:
-G: Print group name for each tag-a: Allow duplicate tags to be extracted-s: Short output format-v: Print verbose messages-q: Quiet processing-c "%.6f": Set format for GPS coordinates
Using these settings, I get the following coordinates:
| |
Which sure enough brings me right to the ice cream place “Il Pistacchio” in Hohen Neuendorf, which I visited earlier today.
