When inserting text over an image, you cant be sure of the colour under it. So it would be great, if as well as being able to set the colour of the text, you could also define a border colour (and perhaps width).

Great module though, watermarking works brilliantly.

Comments

dman’s picture

AFAIK, that's not available for GD text, and has to be done slowly, strangely, manually.
I may be wrong.
There are all sorts of side-effects requiring antialiasing to get bordered text looking acceptable - the naive add-pixels method does NOT look good to anyone.

If you can find a working algorithm, I guess we can look at it, but it's CODE, not just an option that can be turned on. GD is basic, it's not fireworks

a_c_m’s picture

Did some google-research... found a few pages which might be worth lookin @

http://forum.codecall.net/php-tutorials/1624-php-tutorial-getting-know-g...

Also someone achieved an effect by drawing the text four times (y+1,y-1,x+1,x-1) before drawing the actual text. Advocated here http://www.codingforums.com/showthread.php?t=110163 and here http://www.zymic.com/forum/index.php?showtopic=1698

What do you think?

dman’s picture

Status: Active » Postponed

Yeah, That method is good enough.
If anyone wants to put it in, that would be cool.
I have no need to spend time on it right now tho, so it can happen when it happens

dman’s picture

Version: 6.x-1.0 »
Status: Postponed » Fixed

A really nice border is now happening in 6.x-2.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.