Slika
in package
Factory to process an image using an available Adapter
Table of Contents
Constants
- DEFAULT_OPTIONS = ['quality' => 92, 'imconvert' => '/usr/bin/convert']
- these can be overwritten using the options array in run()
- ROTATE_CCW = 8
- rotate an image counter clock wise
- ROTATE_CW = 6
- rotate an image clock wise
- ROTATE_TOPDOWN = 3
- rotate on it's head
Methods
Constants
DEFAULT_OPTIONS
these can be overwritten using the options array in run()
public
mixed
DEFAULT_OPTIONS
= ['quality' => 92, 'imconvert' => '/usr/bin/convert']
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
run()
Start processing the image
public
static run(string $imagePath[, array<string|int, mixed> $options = [] ]) : Adapter
Parameters
- $imagePath : string
- $options : array<string|int, mixed> = []