{"id":2107,"date":"2010-09-17T15:08:00","date_gmt":"2010-09-17T15:08:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2010\/09\/17\/digital-cameras-the-orientation-tag-pictures-not-standing-upright\/"},"modified":"2010-09-17T15:08:00","modified_gmt":"2010-09-17T15:08:00","slug":"digital-cameras-the-orientation-tag-pictures-not-standing-upright","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2010\/09\/17\/digital-cameras-the-orientation-tag-pictures-not-standing-upright\/","title":{"rendered":"digital cameras, the Orientation tag, pictures not standing upright"},"content":{"rendered":"<p>\t\t\t\tModern cameras (some mobile phone cameras included) sense, what is up and what is down, if you take a picture. And if the software on your computer likes interpreting the &#8220;EXIF\u00a0Orientation&#8221; flag of the picture, you will never notice, something unusual is going on. Some software doesn&#8217;t though, so sometimes you are tempted to turn your picture long enough, until it does stand upright. But that kind of software also doesn&#8217;t properly keep the Orientation flag in sync, so next time you browse you pictures with modern software, the pictures look no longer standing upright with that software.<\/p>\n<div>\n<\/div>\n<div>\nNow today I thought of a simple trick, but I wasn&#8217;t sure beforehand, whether it would work \u2013 and it did work.<\/div>\n<div>\n<\/div>\n<div>\nLet me explain the idea! Let&#8217;s suppose you watch your picture in modern software!\u00a0If you turn your picture once to the left, and once to the right, that looks like it should not have any effect, but afterwards the Orientation tag is set to &#8220;<i>Horizontal (normal)<\/i>&#8220;, and internally the picture is also represented &#8220;<i>upright<\/i>&#8220;.<\/div>\n<div>\n<\/div>\n<div>\nWhy is that?<\/div>\n<div>\nWell, when the software 1st picks up the picture with a value different to &#8220;<i>Horizontal (normal)<\/i>&#8220;, it turns the picture, so that it looks upright to you. But I assume, you wouldn&#8217;t like it, if that operation would cause the picture file to change on your disk, right?!?<\/div>\n<div>\nBut if you turn the picture to the left, that is an operation, that you would allow to have an effect to the picture file, right?!? And if you turn the picture to the right, that annuls the visual effect in your eyes.<\/div>\n<div>\nIf your software is rather smart, it only keeps track of the orientation changed and updates the EXIF Orientation tag. That wouldn&#8217;t help us.<\/div>\n<div>\nIf your software isn&#8217;t overly smart but just smart enough for us, it will leave the picture and the picture file in a state, so that the picture&#8217;s internal representation is upright and the EXIF\u00a0Orientation tag is set to &#8220;<i>Horizontal (normal)<\/i>&#8220;, and everything is fine. Now pretty much every software will show the picture properly regardless of the EXIF Orientation tag.<\/div>\n<div>\nNeat trick, isn&#8217;t it? Works for me on Mac OS X with the Previewer.<br \/>\nThat software requires me to confirm, that I want the changed files saved to disk. Other software may have done that already without asking you.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Modern cameras (some mobile phone cameras included) sense, what is up and what is down, if you take a picture. And if the software on your computer likes interpreting the &#8220;EXIF\u00a0Orientation&#8221; flag of the picture, you will never notice, something unusual is going on. Some software doesn&#8217;t though, so sometimes you are tempted to turn [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-2107","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-xZ","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=2107"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2107\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=2107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=2107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=2107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}