PHP Classes

GD Magic: Apply effects on images using only GD

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 1,687 All time: 2,337 This week: 524Up
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 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: 175 Up13 in Italy Italy Down
Innovation award
Innovation award
Nominee: 3x

Screenshots (7)  
  • blur.png
  • edge
  • greyscale.png
  • horizonta-gradient.png
  • negative.png
  • Replace
  • verical-gradient.png
  Files folder image Files (15)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,687
This week:0
All time:2,337
This week:524Up
User Ratings User Comments (1)
 All time
Utility:81%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1831
 
Good
15 years ago (ste)
70%StarStarStarStar