Re: Image_Transform - new effects

From: Date: Wed, 14 Sep 2005 08:29:12 +0000
Subject: Re: Image_Transform - new effects
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39812@lists.php.net to get a copy of this message
Hello, On 9/14/05, Stoyan Stefanov <ssttoo@gmail.com> wrote: > I was playing with GD and came up with a few effects. I've posted them here: > http://www.phpied.com/image-fun/ > > Some of them may be added as enhancements to the Image_Transform package. > > Let me know what you think. I can cooperate in cleaning up, > documenting and adding them to Image_Transform or to another class > that extends Image_Transform, for example > Image_Transform_PixelOperations. Because these are in essence pixel > operations, performed on a single pixel. Image_Transform_Filters might > be another extension that can have effects such as blur, edge detect, > sharpen, etc. Nice, I will take a look at the sources later this week. Have you tried those I added in PHP ext/gd? You have nearly all of them there. image_filter is the function to use them, one being particulary flexible is image_convolution(), it allows you to apply a custom 3x3 convolution matrix. > My current code is concentrates on the operations themselves, not so > much on reading, validating and writing images, something that > Image_Transform already does pretty well. Also my implementation is > designed to be extensible, one can easily add a new effect by > providing a callback function that does something and returns a Pixel > object. I prefer a surface approach as a pixel approach,much more efficient for effects in general. Regards, --Pierre

« previous php.pear.dev (#39812) next »