PHP Classes
elePHPant
Icontem

GD Magic: Apply effects on images using only GD

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2008-12-24 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,654 All time: 2,296 This week: 872Up
Version License PHP version Categories
gdmagic 1.0GNU General Publi...3.0Graphics
Description Author

This class can be used to apply effects on images using only the GD image extension.

It takes an handle of a previous loaded or created image with the GD extension and can apply several types of effects using only functions of the GD library.

Currently it can draw a gradient stripe of given colors, replace the color of points with a given color, convert the color of points to gray scale tones, invert the colors of the points, and perform several other effects like blur, edge detect and emboss.

Innovation Award
PHP Programming Innovation award nominee
January 2009
Number 3


Prize: One license of ScriptCase Enterprise edition
Image manipulation is very popular in PHP thanks to the GD library extension.

More sophisticated image manipulation functions can be applied using the ImageMagick extension. However, this extension is not available in all PHP installations.

This class can perform several types of image effects that the ImageMagick can perform, except that it uses only the GD extension functions, so the ImageMagick extension is not necessary.

Manuel Lemos
Picture of De Rosa Luigi
Name: De Rosa Luigi <contact>
Classes: 8 packages by
Country: Italy Italy
Innovation award
Innovation award
Nominee: 3x

Screenshots  
  • Replace
  • verical-gradient.png
  • negative.png
  • horizonta-gradient.png
  • edge
  • greyscale.png
  • blur.png
  Files folder image Files  
File Role Description
Plain text file blur.php Example Blur effect on php logo
Plain text file edge.php Example Edge detect example of php logo.
Plain text file GDMagic.php Class Class
Plain text file gradient-horizontal.php Example Example of horizontal gradient
Plain text file gradient-vertical.php Example Example of vertical gradient
Plain text file greyscale.php Example Greyscale effect example on php logo
Plain text file negative.php Example Negative effect example on php logo
Plain text file replacecolor.php Example Replace color example on php logo

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,654
This week:0
All time:2,296
This week:872Up
User Comments (1)
Good
7 years ago (ste)
70%StarStarStarStar