Image
class Image implements ImageInterface
Image class for Imagick.
Methods
__construct(Imagick $imagick, string $imageFile, int $width, int $height, string $type, bool $animated = false)
Image constructor.
__clone()
No description
static ImageInterface
createFromFile(string $imageFile)
No description
static ImageInterface
createFromCore(Imagick $imagick)
Create an Image from an instance of Imagick.
static ImageInterface
createBlank(int $width = 1, int $height = 1)
Create a blank image.
resource|Imagick
getCore()
Get Imagick instance
string
getImageFile()
Get image file path.
int
getWidth()
Get image width in pixels.
int
getHeight()
Get image height in pixels.
string
getType()
Get image type.
array
histogram(array|null $slice = null)
Get histogram from an entire image or its sub-region.
bool
isAnimated()
Returns animated flag.
Details
at line line 54
__construct(Imagick $imagick, string $imageFile, int $width, int $height, string $type, bool $animated = false)
Image constructor.
at line line 63
__clone()
at line line 77
blob(string|ImageType $type = 'PNG')
Output a binary raw dump of an image in a specified format.
at line line 88
static ImageInterface
createFromFile(string $imageFile)
at line line 118
static ImageInterface
createFromCore(Imagick $imagick)
Create an Image from an instance of Imagick.
at line line 130
static ImageInterface
createBlank(int $width = 1, int $height = 1)
Create a blank image.
at line line 144
resource|Imagick
getCore()
Get Imagick instance
at line line 153
string
getImageFile()
Get image file path.
at line line 162
int
getWidth()
Get image width in pixels.
at line line 171
int
getHeight()
Get image height in pixels.
at line line 180
string
getType()
Get image type.
at line line 191
array
histogram(array|null $slice = null)
Get histogram from an entire image or its sub-region.
at line line 265
bool
isAnimated()
Returns animated flag.