PNG_GREYSCALE
PNG_GREYSCALE
Constants type of PNG image
Resize and crop images on the fly, store generated images in a cache.
** File not found : http://dbwebb.se/opensource/cimage **
__construct(string $imageSrc = null, string $imageFolder = null, string $saveFolder = null, string $saveName = null)
Constructor, can take arguments to init the object.
string | $imageSrc | filename which may contain subdirectory. |
string | $imageFolder | path to root folder for images. |
string | $saveFolder | path to folder where to save the new file or null to skip saving. |
string | $saveName | name of target file when saveing. |
trueColorToPalette() : void
Convert true color image to palette image, keeping alpha.
http://stackoverflow.com/questions/5752514/how-to-convert-png-to-8-bit-png-using-php-gd-library
createConvolveArguments(string $expression) : array
Create convolve expression and return arguments for image convolution.
string | $expression | constant string which evaluates to a list of
|
as $matrix (3x3), $divisor and $offset