- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Class

# Imagine\Filter\Basic\Thumbnail

class Thumbnail implements FilterInterface

A thumbnail filter

## Methods

| __construct(BoxInterface $size, string $mode = ImageInterface::THUMBNAIL_INSET) Constructs the Thumbnail filter with given width, height and mode |
ImageInterface | apply(ImageInterface $image) Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance |

## Details

###
at line 39
`public __construct(BoxInterface $size, string $mode = ImageInterface::THUMBNAIL_INSET)`

Constructs the Thumbnail filter with given width, height and mode

#### Parameters

BoxInterface | $size |
string | $mode |

###
at line 48
`public ImageInterface apply(ImageInterface $image)`

Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance

#### Parameters

ImageInterface | $image |

#### Return Value

ImageInterface |