class GdDriver extends InterventionDriver (View source)

Properties

protected Transformation>, callable> $transformationHandlers

The registered transformation handlers.

from  InterventionDriver
protected ImageManager $manager

The Intervention image manager instance.

from  InterventionDriver

Methods

__construct()

Create a new Intervention driver instance.

ImageManager
createManager()

Create the underlying Intervention image manager.

void
ensureRequirementsAreMet()

Ensure Intervention Image is installed.

string
process(string $contents, ImagePipeline $pipeline)

Process the given image contents with the specified pipeline.

transformUsing(string $transformation, callable $callback)

Register a transformation handler.

callable|null
transformationHandlerFor(object $transformation)

Get the handler for the given transformation.

Details

__construct()

Create a new Intervention driver instance.

protected ImageManager createManager()

Create the underlying Intervention image manager.

Return Value

ImageManager

void ensureRequirementsAreMet()

Ensure Intervention Image is installed.

Return Value

void

Exceptions

ImageException

string process(string $contents, ImagePipeline $pipeline)

Process the given image contents with the specified pipeline.

Parameters

string $contents
ImagePipeline $pipeline

Return Value

string

Driver transformUsing(string $transformation, callable $callback)

Register a transformation handler.

Parameters

string $transformation
callable $callback

Return Value

Driver

protected callable|null transformationHandlerFor(object $transformation)

Get the handler for the given transformation.

Parameters

object $transformation

Return Value

callable|null

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.