WebOptimization
in package
implements
FilterInterface
A filter to render web-optimized images.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
Methods
- __construct() : mixed
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$options
private
array<string|int, mixed>
$options
$palette
private
RGB
$palette
$path
private
string|callable|null
$path
Methods
__construct()
public
__construct([string|callable|null $path = null ][, array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $path : string|callable|null = null
- $options : array<string|int, mixed> = array()
apply()
Applies scheduled transformation to an ImageInterface instance.
public
apply(ImageInterface $image) : ImageInterface
Parameters
- $image : ImageInterface
Tags
Return values
ImageInterface —returns the processed ImageInterface instance