Driver
interface Driver
Methods
string
process(string $contents, ImagePipeline $pipeline)
Process the given image contents with the specified pipeline.
array
dimensions(string $contents)
Get the dimensions of the given image contents.
string
dominantColor(string $contents)
Get the dominant (average) color of the image as a hex string.
transformUsing(string $transformation, callable $callback)
Register a transformation handler.
Details
at line 16
string
process(string $contents, ImagePipeline $pipeline)
Process the given image contents with the specified pipeline.
Implementations must treat the pipeline as read-only and must not retain it after this call.
at line 23
array
dimensions(string $contents)
Get the dimensions of the given image contents.
at line 28
string
dominantColor(string $contents)
Get the dominant (average) color of the image as a hex string.
at line 37
Driver
transformUsing(string $transformation, callable $callback)
Register a transformation handler.
Boot-only. The handler persists on a cached driver for the worker lifetime and affects every subsequent image processed by that driver.