Skip to content
imagettftextblur is a drop in replacement for imagettftext with added parameters to add blur, glow and shadow effects to your PHP GD images.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
documentation
examples updated http url's to https Dec 15, 2018
source new version Dec 1, 2018
.gitignore
CHANGELOG.md new version Dec 1, 2018
CNAME Create CNAME Mar 11, 2018
CODE_OF_CONDUCT.md
CONTRIBUTING.md added jekyll & github pages support Mar 11, 2018
ISSUE_TEMPLATE.md added an issue template & a pull request template Mar 9, 2018
LICENSE
PULL_REQUEST_TEMPLATE.md
README.md Update README.md Jan 10, 2019
_config.yml
composer.json

README.md

imagettftextblur

MIT License Current Release GitHub Stars Contributors Packagist Downloads Issues

Description

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

Usage

With Composer

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

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 use without Composer add an include to the imagettftextblur.php source file.

include_once 'source/imagettftextblur.php';

Examples

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

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

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

There are other examples included in the GitHub repository and on imagettftextblur.org.

Help Requests

Please post any questions on stackoverflow.com if you need help.

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

Contributing

Please read our contributing guidelines if you want to contribute.

Acknowledgements

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. The mountains photo comes via Gabriel Garcia Marengo.

Changelog

You can find all notable changes in the changelog.

You can’t perform that action at this time.