PHP Classes
elePHPant
Icontem

IMGOut: Perform several types of image manipulation

Recommend this page to a friend!
  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 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 835 All time: 3,986 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 <contact>
Classes: 5 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 1x

Details
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.

Methods
~~~~~~~
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 imgout.inc.php 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:835
This week:0
All time:3,986
This week:1,166Up