ImageSizer::getEngine() method

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.). Since 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.244

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.