SilverStripe\Assets\ImageManipulation::FitMax
Proportionally scale down this image if it is wider or taller than the specified dimensions.
Similar to Fit but without up-sampling. Use in templates with $FitMax.
Signature
public function FitMax(int
$width,
int
$height )
Parameters
$width
— int- The maximum width of the output image
$height
— int- The maximum height of the output image
Returns
- AssetContainer