JpegoptimFilter
extends BaseProcessFilter
in package
Runs assets through Jpegoptim.
Tags
Table of Contents
- $jpegoptimBin : mixed
- $max : mixed
- $stripAll : mixed
- $timeout : mixed
- __construct() : mixed
- Constructor.
- filterDump() : mixed
- filterLoad() : mixed
- setMax() : mixed
- setStripAll() : mixed
- setTimeout() : mixed
- Set the process timeout.
- createProcessBuilder() : ProcessBuilder
- Creates a new process builder.
- mergeEnv() : mixed
Properties
$jpegoptimBin
private
mixed
$jpegoptimBin
$max
private
mixed
$max
$stripAll
private
mixed
$stripAll
$timeout
private
mixed
$timeout
Methods
__construct()
Constructor.
public
__construct([string $jpegoptimBin = '/usr/bin/jpegoptim' ]) : mixed
Parameters
- $jpegoptimBin : string = '/usr/bin/jpegoptim'
-
Path to the jpegoptim binary
Return values
mixed —filterDump()
public
filterDump(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
Return values
mixed —filterLoad()
public
filterLoad(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
Return values
mixed —setMax()
public
setMax(mixed $max) : mixed
Parameters
- $max : mixed
Return values
mixed —setStripAll()
public
setStripAll(mixed $stripAll) : mixed
Parameters
- $stripAll : mixed
Return values
mixed —setTimeout()
Set the process timeout.
public
setTimeout(int $timeout) : mixed
Parameters
- $timeout : int
-
The timeout for the process
Return values
mixed —createProcessBuilder()
Creates a new process builder.
protected
createProcessBuilder([array<string|int, mixed> $arguments = array() ]) : ProcessBuilder
Parameters
- $arguments : array<string|int, mixed> = array()
-
An optional array of arguments
Return values
ProcessBuilder —A new process builder
mergeEnv()
protected
mergeEnv(ProcessBuilder $pb) : mixed
Parameters
- $pb : ProcessBuilder