PHP Classes

ATextImage: Layout and render text on images

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 3,226 All time: 1,090 This week: 146Up
Version License Categories
atextimage 1.0.0GNU General Publi...Graphics, Text processing


This class can render one or multiple lines of text on images.

It can layout one or more groups of lines of text along the image. Each group of text can be aligned at the left, center, or right and top, center, or bottom of the image. Each group of text lines can be rendered with justification to the left, center or right.

The text foreground and background colors of text are configurable, as well as the background and border colors of the image.

The text can be rendered using a given TrueType font and and a given size.

The image can generated with a given size and/or output as result of the current script or saved to a file in either GIF, JPEG or PNG formats.

Picture of George Clarke
Name: George Clarke <contact>
Classes: 7 packages by
Country: United States United States
Age: 77
All time rank: 10413 in United States United States
Week rank: 262 Down23 in United States United States Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Image file Clarke.jpg Photo Photo used with magicman.php
Plain text file class.atextimage.php Class This class will put text of a True Type font onto a photo image, a graphic
Accessible without login HTML file demo.html Data Html file that displays examples of justification and positioning of text
Accessible without login Plain text file demo1.php Example Used with demo.html, Displays the nine possible positions of text, plus shows multiple groups of lines of text on the same image.
Accessible without login Plain text file demoform.php Example A form for the various options of this class and then display image.
Plain text file formimage.php Aux. Used with demoform.php. Displays the image.
Accessible without login Plain text file justdemo.php Example Used with demo.html, Examples of left, center, and right justification of text.
Accessible without login Plain text file magicman.php Example Putting text at the bottom of a photo.
Plain text file offset.php Example Demonstration of the new SetOffset function.

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,090
This week:146Up
User Ratings User Comments (1)
 All time