Method | Description | |
---|---|---|
blob ( string | |
Output a binary raw dump of an image in a specified format. | |
createBlank ( integer $width = 1, integer $height = 1 ) : grafika\ImageInterface | Create a blank image. | |
createFromCore ( resource | Imagick $core ) : grafika\ImageInterface | Create Image from core. | |
createFromFile ( string $imageFile ) : grafika\ImageInterface | Create Image from image file. | |
getCore ( ) : resource | Imagick | Get Image core. | |
getHeight ( ) : integer | ||
getImageFile ( ) : string | ||
getType ( ) : string | ||
getWidth ( ) : integer | ||
isAnimated ( ) : boolean | Returns animated flag. |
public static createBlank ( integer $width = 1, integer $height = 1 ) : grafika\ImageInterface | ||
$width | integer | Width of image in pixels. |
$height | integer | Height of image in pixels. |
return | grafika\ImageInterface | Instance of image. |
public static createFromCore ( resource | Imagick $core ) : grafika\ImageInterface | ||
$core | resource | Imagick | GD resource for GD editor or Imagick instance for Imagick editor |
return | grafika\ImageInterface | Instance of image. |
public static createFromFile ( string $imageFile ) : grafika\ImageInterface | ||
$imageFile | string | Path to image file. |
return | grafika\ImageInterface | Instance of image. |
public getCore ( ) : resource | Imagick | ||
return | resource | Imagick | GD resource or Imagick instance |
public getImageFile ( ) : string | ||
return | string | File path to image if Image was created from an image file. |
public isAnimated ( ) : boolean | ||
return | boolean | True if animated GIF or false otherwise. |