{"id":13860,"date":"2026-06-07T10:12:28","date_gmt":"2026-06-07T14:12:28","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=13860"},"modified":"2026-06-07T10:12:28","modified_gmt":"2026-06-07T14:12:28","slug":"correcting-the-orientation-of-macos-photos-on-linux","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=13860","title":{"rendered":"Correcting The Orientation of macOS Photos on Linux"},"content":{"rendered":"<p>\nJTR over at <a href=\"https:\/\/taonaw.com\">The Art Of Not Asking Why<\/a> describes a problem\u2014and its resolution\u2014that I didn&rsquo;t know existed. The TL;DR is that photographs taken with an iPhone are always captured in landscape mode but Apple&rsquo;s software detects portrait photos and corrects the orientation on the fly.\n<\/p>\n<p>\nThat leads to the problem: <a href=\"https:\/\/taonaw.com\/2026\/06\/03\/correcting-photo-orientation-for-orgmode.html\">when iPhone portrait mode photos are shown on Linux using Org mode they are shown in landscape mode<\/a>. You can get the details from JTR&rsquo;s post.\n<\/p>\n<p>\nThe fix is pretty easy. He uses the <a href=\"https:\/\/imagemagick.org\/mogrify\/#gsc.tab=0\">mogrify<\/a> tool of <a href=\"https:\/\/imagemagick.org\/#gsc.tab=0\">ImageMagick<\/a> to auto-orient the photos based on their EXIF data. Since he&rsquo;s viewing these photos in Org mode he wants an easy way of making the conversion from within Emacs. That&rsquo;s a perfect job for \u00c1lvaro Ram\u00edrez&rsquo;s <a href=\"https:\/\/github.com\/xenodium\/dwim-shell-command\">dwim-shell-command<\/a>, which JTR uses.\n<\/p>\n<p>\nTake a look at the code and see how simple it is. Even if you aren&rsquo;t an Elisp expert, it&rsquo;s easy to do things like this with <code>dwim-shell-command<\/code> right from Emacs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JTR over at The Art Of Not Asking Why describes a problem\u2014and its resolution\u2014that I didn&rsquo;t know existed. The TL;DR is that photographs taken with an iPhone are always captured in landscape mode but Apple&rsquo;s software detects portrait photos and &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=13860\">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,4],"class_list":["post-13860","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs","tag-org-mode"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13860","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=13860"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13860\/revisions"}],"predecessor-version":[{"id":13861,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13860\/revisions\/13861"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}