ImageSizerEngine::prepare()

Prepare the ImageSizer (this should be the first method you call)

This is used as a replacement for __construct() since modules can't have required arguments to their constructor.

Usage

// basic usage
$imageSizerEngine->prepare(string $filename);

// usage with all arguments
$imageSizerEngine->prepare(string $filename, array $options = [], $inspectionResult = null);

Arguments

NameType(s)Description
$filenamestring
$options (optional)array
$inspectionResult (optional)null array

ImageSizerEngine methods and properties

API reference based on ProcessWire core version 3.0.251