Documentation

JpegoptimFilter extends BaseProcessFilter
in package

Runs assets through Jpegoptim.

Tags
link
http://www.kokkonen.net/tjko/projects.html
author

Kris Wallsmith kris.wallsmith@gmail.com

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

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

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

Search results