interface ImageInterface

Interface ImageInterface

Methods

blob(string|ImageType $type)

Output a binary raw dump of an image in a specified format.

static ImageInterface
createBlank(int $width = 1, int $height = 1)

Create a blank image.

static ImageInterface
createFromCore(resource|Imagick $core)

Create Image from core.

static ImageInterface
createFromFile(string $imageFile)

Create Image from image file.

resource|Imagick
getCore()

Get Image core.

int
getHeight()

No description

string
getImageFile()

No description

string
getType()

No description

int
getWidth()

No description

bool
isAnimated()

Returns animated flag.

Details

at line line 16
blob(string|ImageType $type)

Output a binary raw dump of an image in a specified format.

Parameters

string|ImageType $type Image format of the dump. See Grafika\ImageType for supported formats.

at line line 26
static ImageInterface createBlank(int $width = 1, int $height = 1)

Create a blank image.

Parameters

int $width Width of image in pixels.
int $height Height of image in pixels.

Return Value

ImageInterface Instance of image.

at line line 35
static ImageInterface createFromCore(resource|Imagick $core)

Create Image from core.

Parameters

resource|Imagick $core GD resource for GD editor or Imagick instance for Imagick editor

Return Value

ImageInterface Instance of image.

at line line 44
static ImageInterface createFromFile(string $imageFile)

Create Image from image file.

Parameters

string $imageFile Path to image file.

Return Value

ImageInterface Instance of image.

at line line 51
resource|Imagick getCore()

Get Image core.

Return Value

resource|Imagick GD resource or Imagick instance

at line line 56
int getHeight()

Return Value

int Height in pixels.

at line line 61
string getImageFile()

Return Value

string File path to image if Image was created from an image file.

at line line 66
string getType()

Return Value

string Type of image. See ImageType.

at line line 71
int getWidth()

Return Value

int Width in pixels.

at line line 78
bool isAnimated()

Returns animated flag.

Return Value

bool True if animated GIF or false otherwise.