PHP Classes

Overlay Text: Render an image with a text over a background

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 465 All time: 6,050 This week: 524Up
Version License PHP version Categories
overlaytext 1.0Free for non-comm...4.0Graphics
Description 

Author

This class can be used to render an image with a text over another background image.

It takes the path of a background image file and creates a new image with a text rendered over the background image.

The text font, font size, color and alignment are configurable parameters.

The generated overlay image is stored in a given path in JPEG format.

Picture of Mark Berube
Name: Mark Berube <contact>
Classes: 6 packages by
Country: United States United States

Details

Setup NOTES: 1. YOU MUST include a font file Whichever font you want to use) in the same directory as the script. 2. YOU MUST specify that font file in the base class file under "User-defined variables" section. 3. The script MUST have write permission to the directory to create the new image with the embedded text The script wont work if you dont perform these 3 steps

  Files folder image Files (5)  
File Role Description
Plain text file class.overlay.php Class Base class file
Accessible without login Plain text file example.php Example Example usage
Accessible without login Image file img_in.jpg Data Image to test with
Accessible without login Plain text file index.php Example Example Web Form
Accessible without login Plain text file README.txt Doc. Setup Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:465
This week:0
All time:6,050
This week:524Up