interface Driver (View source)

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

string process(string $contents, ImagePipeline $pipeline)

Process the given image contents with the specified pipeline.

Parameters

string $contents
ImagePipeline $pipeline

Return Value

string

array dimensions(string $contents)

Get the dimensions of the given image contents.

Parameters

string $contents

Return Value

array

string dominantColor(string $contents)

Get the dominant (average) color of the image as a hex string.

Parameters

string $contents

Return Value

string

Driver transformUsing(string $transformation, callable $callback)

Register a transformation handler.

Parameters

string $transformation
callable $callback

Return Value

Driver