Documentation

PngoutFilter extends BaseProcessFilter
in package

Runs assets through pngout.

Tags
link
http://advsys.net/ken/utils.htm#pngout
author

Kris Wallsmith kris.wallsmith@gmail.com

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

STRATEGY_HUFFMAN_ONLY

public mixed STRATEGY_HUFFMAN_ONLY = '3'

STRATEGY_LONGEST_MATCH

public mixed STRATEGY_LONGEST_MATCH = '2'

STRATEGY_UNCOMPRESSED

public mixed STRATEGY_UNCOMPRESSED = '4'

Properties

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

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

Search results