{"id":1366,"date":"2011-08-12T16:00:52","date_gmt":"2011-08-12T23:00:52","guid":{"rendered":"https:\/\/www.reenigne.org\/blog\/?p=1366"},"modified":"2011-08-08T23:28:50","modified_gmt":"2011-08-09T06:28:50","slug":"cleartype-for-images","status":"publish","type":"post","link":"https:\/\/www.reenigne.org\/blog\/cleartype-for-images\/","title":{"rendered":"Cleartype for images"},"content":{"rendered":"<p>It occurs to me that one could use similar sub-pixel techniques used by ClearType to improve the resolution of graphics as well as text. One way to do this would be to downsample an image using a kernel with different horizontal phases for red, green and blue. However, this wouldn&#8217;t take into account the fact that <a href=\"https:\/\/www.reenigne.org\/blog\/linux-cleartype-subtly-broken\/\">when making one pixel red, you need to make a nearby one cyan to avoid annoying fringes<\/a>. With text, the geometry can be controlled so that the widths of horizontal spans are always a multiple of 3 subpixels, but if you&#8217;re starting with a bitmap you can&#8217;t really adjust the geometry. Perhaps it wouldn&#8217;t matter in practice: the same effect happens with NTSC television signals &#8211; if you get a black and white pattern with horizontal frequency components in the chroma band you&#8217;ll get colour fringes for exactly the same reason, but you usually don&#8217;t notice it because for most images it evens out on average.<\/p>\n<p>I&#8217;ll have to do some experiments and see what happens.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It occurs to me that one could use similar sub-pixel techniques used by ClearType to improve the resolution of graphics as well as text. One way to do this would be to downsample an image using a kernel with different horizontal phases for red, green and blue. However, this wouldn&#8217;t take into account the fact [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-1366","post","type-post","status-publish","format-standard","hentry","category-graphics"],"_links":{"self":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/comments?post=1366"}],"version-history":[{"count":1,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1366\/revisions"}],"predecessor-version":[{"id":1367,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1366\/revisions\/1367"}],"wp:attachment":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/media?parent=1366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/categories?post=1366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/tags?post=1366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}