PngoutFilter
extends BaseProcessFilter
in package
Runs assets through pngout.
Tags
Table of Contents
- COLOR_GRAY_ALPHA = '4'
- COLOR_GREY = '0'
- COLOR_PAL = '3'
- COLOR_RGB = '2'
- COLOR_RGB_ALPHA = '6'
- FILTER_MIXED = '5'
- FILTER_NONE = '0'
- FILTER_PAETH = '4'
- FILTER_X = '1'
- FILTER_X_Y = '3'
- FILTER_Y = '2'
- STRATEGY_HUFFMAN_ONLY = '3'
- STRATEGY_INTENSE = '1'
- STRATEGY_LONGEST_MATCH = '2'
- STRATEGY_UNCOMPRESSED = '4'
- STRATEGY_XTREME = '0'
- $blockSplitThreshold : mixed
- $color : mixed
- $filter : mixed
- $pngoutBin : mixed
- $strategy : mixed
- $timeout : mixed
- __construct() : mixed
- Constructor.
- filterDump() : mixed
- filterLoad() : mixed
- setBlockSplitThreshold() : mixed
- setColor() : mixed
- setFilter() : mixed
- setStrategy() : mixed
- setTimeout() : mixed
- Set the process timeout.
- createProcessBuilder() : ProcessBuilder
- Creates a new process builder.
- mergeEnv() : mixed
Constants
COLOR_GRAY_ALPHA
public
mixed
COLOR_GRAY_ALPHA
= '4'
COLOR_GREY
public
mixed
COLOR_GREY
= '0'
COLOR_PAL
public
mixed
COLOR_PAL
= '3'
COLOR_RGB
public
mixed
COLOR_RGB
= '2'
COLOR_RGB_ALPHA
public
mixed
COLOR_RGB_ALPHA
= '6'
FILTER_MIXED
public
mixed
FILTER_MIXED
= '5'
FILTER_NONE
public
mixed
FILTER_NONE
= '0'
FILTER_PAETH
public
mixed
FILTER_PAETH
= '4'
FILTER_X
public
mixed
FILTER_X
= '1'
FILTER_X_Y
public
mixed
FILTER_X_Y
= '3'
FILTER_Y
public
mixed
FILTER_Y
= '2'
STRATEGY_HUFFMAN_ONLY
public
mixed
STRATEGY_HUFFMAN_ONLY
= '3'
STRATEGY_INTENSE
public
mixed
STRATEGY_INTENSE
= '1'
STRATEGY_LONGEST_MATCH
public
mixed
STRATEGY_LONGEST_MATCH
= '2'
STRATEGY_UNCOMPRESSED
public
mixed
STRATEGY_UNCOMPRESSED
= '4'
STRATEGY_XTREME
public
mixed
STRATEGY_XTREME
= '0'
Properties
$blockSplitThreshold
private
mixed
$blockSplitThreshold
$color
private
mixed
$color
$filter
private
mixed
$filter
$pngoutBin
private
mixed
$pngoutBin
$strategy
private
mixed
$strategy
$timeout
private
mixed
$timeout
Methods
__construct()
Constructor.
public
__construct([string $pngoutBin = '/usr/bin/pngout' ]) : mixed
Parameters
- $pngoutBin : string = '/usr/bin/pngout'
-
Path to the pngout 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 —setBlockSplitThreshold()
public
setBlockSplitThreshold(mixed $blockSplitThreshold) : mixed
Parameters
- $blockSplitThreshold : mixed
Return values
mixed —setColor()
public
setColor(mixed $color) : mixed
Parameters
- $color : mixed
Return values
mixed —setFilter()
public
setFilter(mixed $filter) : mixed
Parameters
- $filter : mixed
Return values
mixed —setStrategy()
public
setStrategy(mixed $strategy) : mixed
Parameters
- $strategy : 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