class RelativeResize implements FilterInterface

The RelativeResize filter allows images to be resized relative to their existing dimensions.

Methods

__construct(string $method, mixed $parameter)

Constructs a RelativeResize filter with the given method and argument.

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Details

at line 39
__construct(string $method, mixed $parameter)

Constructs a RelativeResize filter with the given method and argument.

Parameters

string $method BoxInterface method
mixed $parameter Parameter for BoxInterface method

at line 54
ImageInterface apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Parameters

ImageInterface $image

Return Value

ImageInterface returns the processed ImageInterface instance

See also

FilterInterface::apply