Turn on/off cropping and/or set cropping direction
Usage
// basic usage
$self = $imageSizerEngine->setCropping();
// usage with all arguments
$self = $imageSizerEngine->setCropping($cropping = true);
Arguments
Name | Type(s) | Description |
---|---|---|
cropping (optional) | bool, string, array | Specify one of: northwest, north, northeast, west, center, east, southwest, south, southeast. Or a string of: 50%,50% (x and y percentages to crop from) Or an array('50%', '50%') Or to disable cropping, specify boolean false. To enable cropping with default (center), you may also specify boolean true. |
Return value
self
ImageSizerEngine methods and properties
API reference based on ProcessWire core version 3.0.236