IMGOut: Perform several types of image manipulation

Recommend this page to a friend!
  Info   View files (6)   Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 837 All time: 4,097 This week: 794
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: 41
All time rank: 80228 in Russian Federation Russian Federation
Week rank: 713 24 in Russian Federation Russian Federation
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
File Role Description Class Class source
imgout.php Example Example for $_GET
imgout.php.jpeg Output Sample output
index.html Data Example HTML form
README Doc. Read this first
sample.jpg Data Sample image

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,097
This week:794

For more information send a message to info at phpclasses dot org.