MIT License Current Release GitHub Stars Contributors Packagist Downloads Issues


imagettftextblur is a drop in replacement for imagettftext with added parameters to add blur, glow and shadow effects to your PHP GD images.


With Composer

This project offers support for the Composer dependency manager. You can find the imagettftextblur package online on

Install using Composer

Either run this command

composer require andrewgjohnson/imagettftextblur

or add this to the require section of your composer.json file.

"andrewgjohnson/imagettftextblur": "1.*"

Without Composer

To get started without Composer simply add an include to the imagettftextblur.php source file.

include_once 'source/imagettftextblur.php';


// standard method to add text to a GD image
imagettftext($image, 20, 0, 0, 0, $color, $font, $string);

// this will work the exact same as the line above
imagettftextblur($image, 20, 0, 0, 0, $color, $font, $string);

// method to add blurred text to a GD image
imagettftextblur($image, 20, 0, 0, 0, $color, $font, $string, 1);

There are a number of other examples included in the GitHub repository.

Help Requests

Please post any questions on if you need help.

If you discover a bug please enter an issue on GitHub. When submitting an issue please use our issue template.


Please read our contributing guidelines if you are interested in contributing.


This project was started by Andrew G. Johnson (@andrewgjohnson)

Full list of contributors:

Our issue template & pull request template come via the stevemao/github-issue-templates project.


You can find all notable changes in the imagettftextblur changelog.