$imagick
$imagick : \Imagick
Image class for Imagick.
blob(string|\Grafika\ImageType $type = 'PNG')
Output a binary raw dump of an image in a specified format.
string|\Grafika\ImageType | $type | Image format of the dump. |
When unsupported type.
createFromFile(string $imageFile) : \Grafika\Imagick\Image
Create Image from image file.
string | $imageFile | Path to image file. |
createFromCore(\Imagick $imagick) : \Grafika\Imagick\Image
Create an Image from an instance of Imagick.
\Imagick | $imagick | Instance of Imagick. |
histogram(array|null $slice = null) : array
Get histogram from an entire image or its sub-region.
array|null | $slice | Array of slice information. array( array( 0,0), array(100,50)) means x,y is 0,0 and width,height is 100,50 |
Returns array containing RGBA bins array('r'=>array(), 'g'=>array(), 'b'=>array(), 'a'=>array())