{"id":131,"date":"2006-06-08T21:41:30","date_gmt":"2006-06-09T02:41:30","guid":{"rendered":"http:\/\/bitpost.com\/news\/2006\/06\/08\/nice-png-alpha-blending-complements-of-the-gimp\/"},"modified":"2011-04-06T19:31:39","modified_gmt":"2011-04-07T00:31:39","slug":"nice-png-alpha-blending-complements-of-the-gimp","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2006\/nice-png-alpha-blending-complements-of-the-gimp\/","title":{"rendered":"Nice PNG alpha-blending complements of the Gimp"},"content":{"rendered":"<p>The PNG format is nice because it&#8217;s supported by Firefox and it has real alpha-based transparency.  This looks great no matter WHAT color your background is:<\/p>\n<div style=\"text-align: center\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/bitpost.com\/news\/wp-content\/images\/source\/mythtv.png\" \/><\/div>\n<p>I have been working on improving the alpha on the category images here, specifically the MythTV and Linux-projects category images.  Here&#8217;s how<!--more--> to get nice anti-aliased alpha-blended edges on PNG images in the Gimp.<\/p>\n<ol>\n<li>Make sure you are using a PNG format, and you set Image->Mode to RGB.<\/li>\n<li>If the PNG image doesn&#8217;t yet have an alpha layer, add one with Layer->Transparency->AddAlphaChannel.<\/li>\n<li>Typically, you have an image with white where you want transparency, or an edge that used to be white and was sloppily converted to transparent along a hard edge.  You want to select the white and\/or transparent areas, and let them cut into the rest of the image by a pixel or two.  Use the magic wand selector, holding down Shift to gradually add to the selection, until you&#8217;ve got what you want.  If it&#8217;s helpful, use Select->Grow and increase what you have selected by a pixel or two, once you get close.<\/li>\n<li>Convert the white in the selection into alpha-blended anti-aliased transparency via either Layer->Transparency->ColorToAlpha or Colors->ColorToAlpha (they appear to be the same command).<\/li>\n<\/ol>\n<p>This does a really nice job in a lot of cases (especially if you&#8217;ve got a clean starting image).  Don&#8217;t forget about my <a href=\"http:\/\/thedigitalmachine.com\/imagescrape\/\">image scraper<\/a>, to help you see what&#8217;s out there already &#8211; but I know you can do even better, whoop!  I know this is bad of me&#8230; but I&#8217;m actually getting off on the fact that it looks awesome in Firefox and like a$$ in IE.  Suck it M$.  Oops did I say that out loud&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The PNG format is nice because it&#8217;s supported by Firefox and it has real alpha-based transparency. This looks great no matter WHAT color your background is: I have been working on improving the alpha on the category images here, specifically the MythTV and Linux-projects category images. Here&#8217;s how<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"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,"enabled":false},"version":2}},"categories":[10],"tags":[82],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","tag-gimp"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-27","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":1,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":1180,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/131\/revisions\/1180"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}