ConstrainImageProcessor
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
ImageInterface
resizeInPlace(ImageInterface $image, Box $size, $mode = ImageInterface::THUMBNAIL_INSET, $filter = ImageInterface::FILTER_UNDEFINED)
{@inheritdoc}
Details
__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