Newscoop\Image\ThumbnailViewHelper::thumbnail PHP Метод

thumbnail() публичный Метод

Get thumbnail for given image
public thumbnail ( string $image, integer $width, integer $height, string $specs ) : mixin
$image string
$width integer
$height integer
$specs string
Результат mixin
    public function thumbnail($image, $width, $height, $specs)
    {
        if (is_string($image)) {
            $image = new LocalImage($image);
        }
        return $this->imageService->getThumbnail(new Rendition($width, $height, $specs), $image);
    }
ThumbnailViewHelper