PHP Classes

Align and justify text in image: Create image with aligned text

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
StarStarStar 41%Total: 2,035 All time: 1,929 This week: 47Up
Version License PHP version Categories
textaligninimage 1.2Freely Distributable5.0PHP 5, Graphics
Description 

Author

This class can be used to generate an image with aligned text in it.

It creates an image with a given width and height and renders a text string in it.

The text may be align to the left, right, center or justified relatively to the image width.

The text font, size, background and foreground colors are configurable.

The generated image may be served as the current script output or stored in a server side file in the PNG, JPEG or GIF formats.

Picture of Taslim Mazumder Sohel
Name: Taslim Mazumder Sohel <contact>
Classes: 2 packages by
Country: Japan Japan
Age: ???
All time rank: 6292 in Japan Japan
Week rank: 180 Up1 in Japan Japan Up

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file img.php Example Example File
Plain text file TextToImage.class.php Class Class File

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:2,035
This week:0
All time:1,929
This week:47Up
User Ratings User Comments (2)
 All time
Utility:58%StarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:41%StarStarStar
Rank:3699