Andrew G. Johnson Andrew G. Johnson - 1 year ago 129
PHP Question

How can I add glow or a shadow to text in PHP's GD library?

Is it possible to add glow or a shadow to text in GD? Currently I am using the imagettftext function.

Answer Source

I ran into this problem and created a new function called imagettftextblur which I've released as open source at

Here is how to add a shadow:

imagettftextblur($image,$size,0,$x + 3,$y + 3,$shadow_color,$font,$string,1); // 1 can be higher to increase blurriness of the shadow
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download