Giter Site home page Giter Site logo

andrewgjohnson / imagettftextblur Goto Github PK

View Code? Open in Web Editor NEW
27.0 5.0 11.0 2.21 MB

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

Home Page: https://imagettftextblur.agjgd.org

License: MIT License

PHP 100.00%
php composer gd graphics image images

imagettftextblur's Introduction

imagettftextblur

MIT License Current Release GitHub Stars Contributors Packagist Downloads Issues Patreon

Description

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

Patreon - Become a Patron

imagettftextblur is an agjgd.org project.

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.agjgd.org.

Help Requests

Please post any questions in the discussions area on GitHub 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.

You can contribute financially by becoming a patron at patreon.com/agjopensource to support imagettftextblur and other agjgd.org projects.

Patreon - Become a Patron

Acknowledgements

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

Full list of contributors:

Our security policies and procedures comes via the atomist/samples project. Our issue templates comes via the tensorflow/tensorflow project. Our pull request template comes 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.

imagettftextblur's People

Contributors

andrewgjohnson avatar imgbotapp avatar vheemstra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

imagettftextblur's Issues

Return value

Emulate return value of imagettftext--should be an array of coordinates for a success and false for a failure

$color parameter ignores alpha

If you pass a color using imagecolorallocatealpha() rather than imagecolorallocate() the alpha level is ignored and a full 100% visible color is used

[Feature Request]: Update examples to work out of the box with Composer

Contact Details

No response

Describe the new feature versus the current behaviour

Right now we check file_exists('../source/imagettftextblur.php') but should add some kind of handling for function_exists('imagettftextblur') in the event the code has already loaded the function [presumably via Composer]

Is there any risk this change will not be backwards compatible with current integrations?

No response

Any other information

No response

Confirm minimum PHP version

I believe using square bracket method for arrays ($x=[]; rather than $x=array();) requires at least PHP 5.4. Confirm whether or not this is the case & update the repo accordingly. If true, either the composer config needs to be updated or we need to stop using the square bracket method.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.