Geotagging in digiKam with a Lazy Bash Script

20161109-081040

Sometimes, the easiest way to geotag photos in digiKam is to copy and paste geographical coordinates from an existing photo. I usually use Google Photos for that, as it conveniently displays geographical coordinates of the currently viewed photos in the information sidebar.

google-photos-location

There is only one problem with this technique: copying and pasting the geographical coordinates directly doesn’t work, as digiKam expects these values to be formatted as geo:lat,long. A simple Bash shell script solves the problem.

#!/bin/bash latlon="geo:"$(xclip -o | tr -d ' ')
notify-send $latlon -i info
xclip -selection c

The script uses the xclip and tr tools to grab the contents of the clipboard (latitude and longitude values in this case) and strip the extraneous white space. The properly formatted string is then copied back into the clipboard ready to be inserted into digiKam.

Installing the script is a matter of running the following commands:

sudo cp geo /usr/local/bin/
sudo chown root:root /usr/local/bin/geo
sudo chmod 755 /usr/local/bin/geo

Next time you need to format geographical coordinates, copy them, press Alt+F2, type geo, and press Enter. Switch then to digiKam, select the photo or photos you want to geotag, and choose Item →Edit Geolocation. In the geolocation editor, select the photos, right-click on the selection, and choose Paste coordinates. Press Apply, and you’re done.

Tagged with: , ,
Posted in Open Source, Photography, Software

[REPOST] 15+ Stunning Satellite Photos That Will Change How You See Our World

Photographer Benjamin Grant has set off on a mission to change the way we see our planet with his stunning photo project – Daily Overview.

Continue reading 15+ Stunning Satellite Photos That Will Change How You See Our World

Posted in Reposts

[REPOST] City sights: black & white modern architecture

Noel Baldewijns creates highly distinctive photographs of modern architecture captured in glowing light and beautiful black & white. Tom Peck talks to him about his evocative images

Continue reading City sights: black & white modern architecture

Posted in Photography

[REPOST] Photographer Transforms the World into Soothing Sights

London-based photographer Denis Cherim is so in love with happenstance moments that he has dedicated much of his spare time to capturing all the soothing sights the world has to offer in a photo series entitled the Coincidence Project.

Continue reading Photographer Transforms the World into Soothing Sights

Posted in Reposts

[REPOST] The Mesmerizing Architecture of Mosques

When we walk into a beautiful, ornate cathedral or mosque our necks reflexively whip upward. The body senses the eerieness of a vast indoor space, and the eyes are rewarded with intricate and gorgeous architecture. But our gaze can only see part of the artwork at a time, and the blood rushing from our heads limits our ability to stare.

Iranian photographer Mohammad Reza Domiri gives us an opportunity to see the entirety of these incredible spaces all at once. His fully panoramic, expansive photographs of centuries-old mosques reveal the genius of their geometries and complexity. The effect is dizzying in a different way, like some kind of fractalized religious hallucination.

Continue reading The Mesmerizing Architecture of Mosques

Posted in Reposts

[REPOST] How’d You Get That Picture? Ryann Ford’s Rest Stop Series

In 2007, photographer Ryann Ford packed up her things and made the move from Southern California to Austin, Texas, taking Route 66 to get there. Along the way, she discovered her next photography subject — the rest stop. Intrigued by the mock adobe dwellings in New Mexico and faux oil rigs in Texas, Ford began to investigate the story behind these quirky pieces of mid-century modern architecture.

Continue reading How’d You Get That Picture? Ryann Ford’s Rest Stop Series

Posted in Reposts

[REPOST] 100-Year-Old Photos Capture Authentic Daily Life in Japan

These rare shots of vintage Japan during 1908 are thanks to the acute artistic eye of Arnold Genthe. The German-born American scholar honed his photographic talent on the streets, spending his off-time roaming through his city with a partially hidden camera in attempts of recording memorable moments. This intriguing series was collected during a 6-month visit to Japan, during which Genthe managed to share his perspective of the vivid daily experiences of its local citizens.

Continue reading: 100-Year-Old Photos Capture Authentic Daily Life in Japan

Posted in Reposts