SilverStripe\Assets\ImageManipulation::Fill
Resize and crop image to fill specified dimensions.
Use in templates with $Fill
Signature
public function Fill(int
$width,
int
$height )
Parameters
$width
— int- Width to crop to
$height
— int- Height to crop to
Returns
- AssetContainer