Home  |  Linux  | Mysql  | PHP  | XML
From:Steve Davis Date:Wed Jun  4 05:30:00 2008
Subject:Anti aliased fonts with transparent backgrounds look crap.
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?

 

I have tried combinations of fore and background colours to see if having
the transparent background RGB close to or far away from the foreground RGB
makes a difference and it can help, but it depends on what the image is
sitting over.

 

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.

 

Any help appreciated.

 

All the best

 

Steve

 


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