SilverStripe\Assets\ImageManipulation::CropHeight
Crop image on Y axis if it exceeds specified height. Retain width.
Use in templates with $CropHeight. Example: $Image.ScaleWidth(100).CropHeight(100)
Signature
public function CropHeight(int
$height )
Parameters
$height
— int- The maximum height of the output image
Returns
- AssetContainer