ImageFunctionsExtension::RatioCrop
Resize the image by preserving aspect ratio, keeping the image inside the $width and $height then cropping to the exact $width and $height.
Use in templates with $RatioCrop.
Signature
public function RatioCrop(int
$width,
int
$height )
Parameters
$width
— int- The width to size to
$height
— int- The width to size to
Returns
- Image