November 2010
Monthly Archive
Monthly Archive
Posted by Jim DeLaHunt on 30 Nov 2010 | Tagged as: robobait, web technology
Are you using PHP (or libGD) to generate PNG images? Are you having problems getting your text anti-aliased, and also having your “transparent” colour recognised as transparent? Well, I had that problem too. libGD, the component which PHP uses to handle image operations, gives you a choice: you can have anti-aliased text, or a designated colour as transparent… but not both. Here’s why, and what you can do about it.