Re: [GD-DEVEL] GD Question
| From: | Derick Rethans | Date: | Fri, 04 Jan 2008 08:20:27 +0000 |
| Subject: | Re: [GD-DEVEL] GD Question | ||
| References: | 1 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-301@lists.php.net to get a copy of this message | ||
On Thu, 3 Jan 2008, Tony wrote:
> Hello. I wanted to ask if there is a way to write a text string to a JPEG
> image such that the foreground color will always be visible regardless of the
> underlying image?
I've some code that analyses the background colour and draw the text on
top of it in a readable colour. It works moderately well - it's written
in PHP. This little script (attached) does it by word even, you will
probably have to tweak it.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org