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