{"id":93,"date":"2009-05-15T23:12:58","date_gmt":"2009-05-15T21:12:58","guid":{"rendered":"http:\/\/blog.ansuz.nl\/?p=93"},"modified":"2009-05-15T23:12:58","modified_gmt":"2009-05-15T21:12:58","slug":"imagettftext-resulting-in-blurry-text","status":"publish","type":"post","link":"http:\/\/blog.ansuz.nl\/index.php\/2009\/05\/15\/imagettftext-resulting-in-blurry-text\/","title":{"rendered":"imagettftext resulting in blurry text"},"content":{"rendered":"<p>It&#8217;s been a while since I used PHP and I&#8217;m finally doing something with it again. I&#8217;m working on creating dynamic forum signatures and of course need to use some text in that. I&#8217;m using the imagettftext() method to create my text using the Arial font. I was getting strange blurred result and reading the documentation suggested I should turn the anti-aliassing off. It turn out that the GDLib JPG compression is pretty bad and caused all the blurring. When I switched to PNG all blurryness was gone.<\/p>\n<p><em>Solution: <\/em>Make sure you use PNG, not JPEG.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been a while since I used PHP and I&#8217;m finally doing something with it again. I&#8217;m working on creating dynamic forum signatures and of course need to use some text in that. I&#8217;m using the imagettftext() method to create &hellip; <a href=\"http:\/\/blog.ansuz.nl\/index.php\/2009\/05\/15\/imagettftext-resulting-in-blurry-text\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[78,77,79],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-php","tag-blurry","tag-imagettftext","tag-text"],"_links":{"self":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":1,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":94,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/93\/revisions\/94"}],"wp:attachment":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}