SilverStripe\Assets\ImageManipulation::FillMax
Crop this image to the aspect ratio defined by the specified width and height, then scale down the image to those dimensions if it exceeds them.
Similar to Fill but without up-sampling. Use in templates with $FillMax.
Signature
public function FillMax(int
$width,
int
$height )
Parameters
$width
— int- The relative (used to determine aspect ratio) and maximum width of the output image
$height
— int- The relative (used to determine aspect ratio) and maximum height of the output image
Returns
- AssetContainer