imagettftextblur is a drop in replacement for imagettftext with added parameters to add blur, glow and shadow effects to your PHP GD images.
Install using Composer
Either run this command
composer require andrewgjohnson/imagettftextblur
or add this to the
require section of your composer.json file.
// 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.
Please post any questions on stackoverflow.com if you need help.
Please read our contributing guidelines if you are interested in contributing.
This project was started by Andrew G. Johnson (@andrewgjohnson)
Full list of contributors:
You can find all notable changes in the imagettftextblur changelog.