Class

Imagine\Image\AbstractImage

abstract class AbstractImage implements ImageInterface

Methods

ManipulatorInterface 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

MetadataInterface metadata()

Returns the Image's meta data

__clone()

Assures the metadata instance will be cloned, too

Details

at line 27
public ManipulatorInterface 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

ManipulatorInterface

Exceptions

RuntimeException

at line 103
public MetadataInterface metadata()

Returns the Image's meta data

Return Value

MetadataInterface

at line 111
public __clone()

Assures the metadata instance will be cloned, too