class Thumbnailer

이미지 섬네일 생성 처리

Properties

static protected ImageManager $manager ImageManager instance
protected string $image Origin image content
protected CommandInterface[] $commands Be executed commands

Methods

__construct()

Constructor

static void
setManager(ImageManager $manager)

Set Intervention image manager

static ImageManager
getManager()

Get Intervention image manager

$this
setOrigin(string $image)

Set target image

$this
addCommand(CommandInterface $command)

Add command

string
generate()

Generate thumbnail image

Details

at line 58
__construct()

Constructor

at line 69
static void setManager(ImageManager $manager)

Set Intervention image manager

Parameters

ImageManager $manager ImageManager instance

Return Value

void

at line 79
static ImageManager getManager()

Get Intervention image manager

Return Value

ImageManager $manager ImageManager instance

at line 90
$this setOrigin(string $image)

Set target image

Parameters

string $image image content

Return Value

$this

at line 103
$this addCommand(CommandInterface $command)

Add command

Parameters

CommandInterface $command command instance

Return Value

$this

at line 116
string generate()

Generate thumbnail image

Return Value

string image content

Exceptions

PropertyNotSetException