PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2009-07-22 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 450 All time: 5,865 This week: 942Up
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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:450
This week:0
All time:5,865
This week:942Up