SilverStripe\Assets\ImageManipulation::Pad
Fit image to specified dimensions and fill leftover space with a solid colour (default white). Use in templates with $Pad.
Signature
public function Pad(int
$width,
int
$height,
[string
$backgroundColor = 'FFFFFF',
[integer
$transparencyPercent = 0]] )
Parameters
$width
— int- The width to size to
$height
— int- The height to size to
$backgroundColor
— string$transparencyPercent
— integer- Level of transparency
Returns
- AssetContainer