SilverStripe\Assets\ImageManipulation::Fit
Scale image proportionally to fit within the specified bounds
Signature
public function Fit(int
$width,
int
$height )
Parameters
$width
— int- The width to size within
$height
— int- The height to size within
Returns
- AssetContainer