ImageFunctionsExtension::generateRatioCrop
Resize the image by preserving aspect ratio, keeping the image inside the $width and $height then cropping to the exact $width and $height.
Signature
public function generateRatioCrop(Image_Backend
$backend,
int
$width,
int
$height )
Parameters
$backend
— Image_Backend
$width
— int- The width to size to
$height
— int- The width to size to
Returns
- Image_Backend