PHP Classes

IMGOut: Perform several types of image manipulation

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-06-10 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 835 All time: 3,918 This week: 1,166Up
Version License Categories  
imgout 1.0Freely DistributableGraphics
Description Author  

This class can perform several types of image manipulation.

It can:

- Load existing image or create new image
- Resize an image keeping aspect ratio
- Draw a given text with optional glow effect
- Serve the processed image in any supported format; it supports GIF and PNG with transparency

It requires GD 2 library with TrueType font support to provide all the functionality.

Picture of Dmitry A. Kirilin
Name: Dmitry A. Kirilin is available for providing paid consulting. Contact Dmitry A. Kirilin .
Classes: 5 packages by
Country: Russian Federation Russian Federation
Age: 36
All time rank: 79427 in Russian Federation Russian Federation
Week rank: 1623 Down51 in Russian Federation Russian Federation Down
Innovation award
Innovation award
Nominee: 1x

IMGOut: a simple image processor class.

Demo and testing
This package misses a TTF font named "default.ttf".
To make an example work, copy any TTF font into directory, where IMGOut is
unpacked and enjoy.

Short description.
This class is optimized for direct server variable usage, like $_GET and $_POST.
Path checking implemented.

Constructor: IMGOut($vars)
Expects $vars to be an associative array containing processing parameters (full
list can be seen at the top of class source file).
Also does text application, if specified.

Method: Text($vars)
Applies a text to loaded/generated image.
Expects the same as constructor, but it hasn't to be equal. ;)

Method: SetOutputType($type)
Sets the type for streaming in Output().

Method: Output()
Streams the image.

(C) m0Ray 2005
Russia, Samara
  Files folder image Files  
File Role Description
Plain text file Class Class source
Accessible without login Plain text file imgout.php Example Example for $_GET
Accessible without login Image file imgout.php.jpeg Output Sample output
Accessible without login HTML file index.html Data Example HTML form
Accessible without login Plain text file README Doc. Read this first
Accessible without login Image file sample.jpg Data Sample image

 Version Control Unique User Downloads Download Rankings  
 0%Total:835All time:3,918
 This week:0This week:1,166Up