Re: [Gimp-user] [offtopic] image viewer which can show the location on a map



Am Mo., 15. Okt. 2018 um 16:38 Uhr schrieb Helmut Jarausch via
gimp-user-list <gimp-user-list gnome org>:

I have elobrated his method a bit coming up with (calling it
ShowImageLocation)

#!/bin/bash
qutebrowser `exiftool -c "%.6f" $1 | grep "GPS Position" | \
sed -r -e 's|^.*: ([0-9]+\.[0-9]+) ([NS]), ([0-9]+\.[0-9]+)
([EW])$|http://www.openstreetmap.org/\\?mlat=\1\2\\&mlon=\3\4\\&zoom=17|g'`

qutebrowser is a lightweight browser on Linux (e.g. Gentoo). One can
use any other browser, as well.

Perhaps xdg-open is a good alternative to a hard coded browser.
Xdg-open opens a URL in the user's preferred browser:
https://linux.die.net/man/1/xdg-open

Regards Tobias


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]