InterventionDriver
abstract class InterventionDriver implements Driver (View source)
Properties
| protected Transformation>,callable> | $transformationHandlers | The registered transformation handlers. |
|
| protected | $manager | The Intervention image manager instance. |
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.
abstract protected 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.
Driver
transformUsing(string $transformation, callable $callback)
Register a transformation handler.
protected callable|null
transformationHandlerFor(object $transformation)
Get the handler for the given transformation.