ImageSizer::getEngine()

Get the current ImageSizerEngine

Usage

// basic usage
$imageSizerEngine = $imageSizer->getEngine();

// usage with all arguments
$imageSizerEngine = $imageSizer->getEngine(string $engineName = '');

Arguments

NameType(s)Description
$engineName (optional)string

Optionally specify a specific engine name to get a new instance of that engine When used, returned engine is in an unprepared state (no filename assigned, etc.). 3.0.138.

Return value

ImageSizerEngine null

Returns ImageSizerEngine or null only if requested $engineName is not found. If no $engineName is specified this method may return an existing instance from a previous call.

Exceptions

Method can throw exceptions on error:

  • WireException


ImageSizer methods and properties

API reference based on ProcessWire core version 3.0.251