Class

Imagine\Image\AbstractImage

abstract class AbstractImage implements ImageInterface

Methods

ImageInterface thumbnail(BoxInterface $size, string $mode = ImageInterface::THUMBNAIL_INSET, string $filter = ImageInterface::FILTER_UNDEFINED)

Generates a thumbnail from a current image Returns it as a new image, doesn't modify the current image

MetadataBag metadata()

Returns the Image's meta data

__clone()

Assures the metadata instance will be cloned, too

Details

at line 29
public ImageInterface thumbnail(BoxInterface $size, string $mode = ImageInterface::THUMBNAIL_INSET, string $filter = ImageInterface::FILTER_UNDEFINED)

Generates a thumbnail from a current image Returns it as a new image, doesn't modify the current image

Parameters

BoxInterface $size
string $mode
string $filter The filter to use for resizing, one of ImageInterface::FILTER_*

Return Value

ImageInterface

Exceptions

RuntimeException

at line 105
public MetadataBag metadata()

Returns the Image's meta data

Return Value

MetadataBag

at line 113
public __clone()

Assures the metadata instance will be cloned, too