JonoM\FocusPoint\Extensions\FocusPointExtension::FocusFillMax
Crop this image to the aspect ratio defined by the specified width and height, centred on focal point of image, then scale down the image to those dimensions if it exceeds them. Similar to FocusFill but without up-sampling. Use in templates with $FocusFillMax.
Signature
public function FocusFillMax(int
$width,
int
$height )
Parameters
$width
— int- Width to crop to
$height
— int- Height to crop to
Returns
- Image|DBFile|null