class ConstrainImageProcessor implements ProcessorInterface (View source)

Properties

protected $maxWidth
protected $maxHeight
protected $constraintMode
protected $resizeInPlace

Methods

__construct($maxWidth = null, $maxHeight = null, $constraintMode = null)

No description

mixed
getResizeInPlace()

No description

setResizeInPlace($resizeInPlace)

No description

mixed
getMaxWidth()

No description

setMaxWidth(mixed $maxWidth)

No description

mixed
getMaxHeight()

No description

setMaxHeight(mixed $maxHeight)

No description

string
getConstraintMode()

No description

setConstraintMode(string $constraintMode)

No description

shouldProcess(Version $version)

No description

ImageInterface
resizeInPlace(ImageInterface $image, Box $size, $mode = ImageInterface::THUMBNAIL_INSET, $filter = ImageInterface::FILTER_UNDEFINED)

{@inheritdoc}

process(Version $version)

No description

Details

__construct($maxWidth = null, $maxHeight = null, $constraintMode = null)

No description

Parameters

$maxWidth
$maxHeight
$constraintMode

mixed getResizeInPlace()

No description

Return Value

mixed

setResizeInPlace($resizeInPlace)

No description

Parameters

$resizeInPlace

mixed getMaxWidth()

No description

Return Value

mixed

setMaxWidth(mixed $maxWidth)

No description

Parameters

mixed $maxWidth

mixed getMaxHeight()

No description

Return Value

mixed

setMaxHeight(mixed $maxHeight)

No description

Parameters

mixed $maxHeight

string getConstraintMode()

No description

Return Value

string

setConstraintMode(string $constraintMode)

No description

Parameters

string $constraintMode

shouldProcess(Version $version)

No description

Parameters

Version $version

ImageInterface resizeInPlace(ImageInterface $image, Box $size, $mode = ImageInterface::THUMBNAIL_INSET, $filter = ImageInterface::FILTER_UNDEFINED)

{@inheritdoc}

Parameters

ImageInterface $image
Box $size
$mode
$filter

Return Value

ImageInterface

process(Version $version)

No description

Parameters

Version $version