PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 1,687 All time: 2,336 This week: 524Up
Version License PHP version Categories
gdmagic 1.0GNU General Publi...3.0Graphics


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 is available for providing paid consulting. Contact De Rosa Luigi .
Classes: 8 packages by
Country: Italy Italy
Age: 31
All time rank: 2036 in Italy Italy
Week rank: 286 Down12 in Italy Italy Down
Innovation award
Innovation award
Nominee: 3x

  • blur.png
  • edge
  • greyscale.png
  • horizonta-gradient.png
  • negative.png
  • Replace
  • verical-gradient.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  
This week:0
All time:2,336
This week:524Up
User Ratings User Comments (1)
 All time
15 years ago (ste)