PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 841 All time: 4,129 This week: 524Up
Version License Categories
imgout 1.0Freely DistributableGraphics


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: 44
All time rank: 80128 in Russian Federation Russian Federation
Week rank: 307 Up18 in Russian Federation Russian Federation Up
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. 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 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  
This week:0
All time:4,129
This week:524Up