LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Pierre Joye Date: Wed Jun 4 05:35:37 2008 Subject: Re: [GD-DEVEL] Anti aliased fonts with transparent backgrounds look crap.
On Wed, Jun 4, 2008 at 1:30 PM, Steve Davis <steved@hahaha.com.au> wrote: > Hey Folks, > > > > I am a bit of a novice with GD but thanks to the web I can manage to cobble > together what I need to do and am always impressed with the results. GD is > good! > > > > I am creating an image from text. I want it to have a transparent > background > > > > All good so far except because the text in the image is anti aliased it gets > some serious jaggies that turn a fantastic looking image into something that > looks pretty ordinary. > > > > Is there any solution to this? This example will surely help you: http://cvs.php.net/viewvc.cgi/gd/playground/text_on_transparent_background/ > Also I want to do this on the fly with the image being dynamically created > from database values depending on various paramaters. i.e. it might be > black text or it might be white. Actually, thinking about it that is really > the limit, black or white text so that might lead to a kludge solution. As long as you use the alpha as antialiasing (as in the example above), you can copy the text on any image. An example of this technique is shown here: http://pierre.libgd.org/watermark/ (french text but codes and iamges are universal :) Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org
| Navigate in group php.gd.devel at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |