Resize the image
The resize method does all pre and post-processing for the engines + calls the engine's processResize() method.
Pre-processing is: Calculate and set dimensions, create a tempfile.
Post-processing is: Copy back and delete tempfile, write IPTC if necessary, reload imageinfo, set the modified flag.
Usage
$bool = $imageSizerEngine->resize(int $finalWidth, int $finalHeight);
Arguments
Name | Type(s) | Description |
---|---|---|
finalWidth | int | |
finalHeight | int |
Return value
bool
ImageSizerEngine methods and properties
API reference based on ProcessWire core version 3.0.236