Coder Social home page Coder Social logo

imageoverlayer's Introduction

alesinicio/imageOverlayer

The alesinicio/imageOverlayer class allows the easy creation of multiple text overlays in images.

The usage is very simple. You will need:

  • the class source (imageOverlayer.php);
  • the image file which will be overlayed;
  • a configuration file which tells how the overlaying will be done;
  • the font files (TTF) you will use.

Basic usage

``` use alesinicio\imageOverlayer;

$configurationFile = "overlay_config.php";

$imgOutput = imageOverlayer::overlay($configurationFile); //CREATES AN IMAGE WITH THE OVERLAY. $base64 = imageOverlayer::imgToBase64($imgOutput); //BASE64 ENCODING SO WE AVOID SAVING FILES TO DISK. echo "";


<h2>Advantages</h2>
You can setup multiple overlays. Suppose you want to create both a "Happy Birthday" card and a "Happy Halloween" card. You will then get two images (the templates) and create two configuration files, which will tell the class where the overlays should be placed, and which data.

<h2>Flexible</h2>
The data you will use is configurable. Maybe it will come from a database, maybe from a form, maybe it is hard-coded... it is your choice!

<h2>Requirements</h2>
Your PHP must be compiled with FreeType support.

imageoverlayer's People

Contributors

alesinicio avatar

Stargazers

Sergey avatar  avatar Facundo avatar

Watchers

 avatar  avatar

imageoverlayer's Issues

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.