{"id":10926,"date":"2022-11-04T15:11:49","date_gmt":"2022-11-04T19:11:49","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=10926"},"modified":"2022-11-04T15:11:49","modified_gmt":"2022-11-04T19:11:49","slug":"extracting-and-displaying-exif-information","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=10926","title":{"rendered":"Extracting and Displaying EXIF Information"},"content":{"rendered":"<p>\u00c1lvaro Ram\u00edrez continues to roll out new examples of applications for his <a href=\"https:\/\/github.com\/xenodium\/dwim-shell-command\">dwim-shell-command<\/a> framework. His <a href=\"https:\/\/xenodium.com\/hey-emacs-where-did-i-take-that-photo\/\">latest offering<\/a> is three functions that, given a photo:<\/p>\n<ol class=\"org-ol\">\n<li>Display the EXIF information<\/li>\n<li>Displays the location of where the photo was taken in the minibuffer<\/li>\n<li>Displays the location of where the photo was taken on a map<\/li>\n<\/ol>\n<p>All the heavy lift is done by <a href=\"https:\/\/exiftool.org\/\">ExifTool<\/a>. As usual with <code>dwim-shell-command<\/code> functions, the actual functions are just a little glue code that calls <code>ExifTool<\/code> and displays the results. In the case of displaying the location on a map, the lat\/lon is first extracted from the photo by <code>ExifTool<\/code> and then used in a call to <a href=\"https:\/\/www.openstreetmap.org\/#map=4\/38.01\/-95.84\">OpenStreetMap<\/a> in the browser. It works with both macOS and X-based display systems.<\/p>\n<p>The three functions, along with all the others are available in Ram\u00edrez\u2019s <a href=\"https:\/\/github.com\/xenodium\/dwim-shell-command\/blob\/main\/dwim-shell-commands.el\">dwim-shell-commands.el<\/a> file. They\u2019re all simple and easy to adjust to your particular workflow. Take a look at Ram\u00edrez\u2019s latest post for a nice example of the power of this framework.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00c1lvaro Ram\u00edrez continues to roll out new examples of applications for his dwim-shell-command framework. His latest offering is three functions that, given a photo: Display the EXIF information Displays the location of where the photo was taken in the minibuffer &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=10926\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-10926","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10926"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10926\/revisions"}],"predecessor-version":[{"id":10927,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10926\/revisions\/10927"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}