Closed (fixed)
Project:
ImageCache Actions
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2008 at 16:44 UTC
Updated:
8 Jun 2010 at 14:00 UTC
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
Comment #1
dman commentedAFAIK, 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
Comment #2
a_c_m commentedDid 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?
Comment #3
dman commentedYeah, 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
Comment #4
dman commentedA really nice border is now happening in 6.x-2.x