Slika
in package
Factory to process an image using an available Adapter
Table of Contents
Constants
- DEFAULT_OPTIONS : mixed = ['quality' => 92, 'imconvert' => '/usr/bin/conv...
- these can be overwritten using the options array in run()
- ROTATE_CCW : mixed = 8
- rotate an image counter clock wise
- ROTATE_CW : mixed = 6
- rotate an image clock wise
- ROTATE_TOPDOWN : mixed = 3
- rotate on it's head
Methods
- mergeOptions() : array<string|int, mixed>
- Apply the given options on top of the defaults
- run() : Adapter
- Start processing the image
Constants
DEFAULT_OPTIONS
these can be overwritten using the options array in run()
public
mixed
DEFAULT_OPTIONS
= ['quality' => 92, 'imconvert' => '/usr/bin/convert', 'imlimits' => ['memory' => '256MiB', 'map' => '512MiB', 'disk' => '1GiB']]
ROTATE_CCW
rotate an image counter clock wise
public
mixed
ROTATE_CCW
= 8
ROTATE_CW
rotate an image clock wise
public
mixed
ROTATE_CW
= 6
ROTATE_TOPDOWN
rotate on it's head
public
mixed
ROTATE_TOPDOWN
= 3
Methods
mergeOptions()
Apply the given options on top of the defaults
public
static mergeOptions(array<string|int, mixed> $options) : array<string|int, mixed>
Options holding an array of their own are merged key by key, so overriding a single entry keeps the remaining defaults in place.
Parameters
- $options : array<string|int, mixed>
Return values
array<string|int, mixed>run()
Start processing the image
public
static run(string $imagePath[, array<string|int, mixed> $options = [] ]) : Adapter
Parameters
- $imagePath : string
- $options : array<string|int, mixed> = []