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. |
createDummyImage(integer $width = null, integer $height = null) : $this
Create and save a dummy image. Use dimensions as stated in $this->newWidth, or $width or default to 100 (same for height.
integer | $width | use specified width for image dimension. |
integer | $height | use specified width for image dimension. |
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 11 numbers separated by komma or such a list. |
as $matrix (3x3), $divisor and $offset
save(string $src = null, string $base = null, boolean $overwrite = true) : $this
Save image.
string | $src | as target filename. |
string | $base | as base directory where to store images. |
boolean | $overwrite | or not, default to always overwrite file. |
or false if no folder is set.