mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Added Pad method to Image
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40818 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e386cbae57
commit
6600c92be0
@ -217,6 +217,10 @@ class Image extends File {
|
||||
function generateStripThumbnail(GD $gd) {
|
||||
return $gd->croppedResize($this->stat('strip_thumbnail_width'),$this->stat('strip_thumbnail_height'));
|
||||
}
|
||||
|
||||
function generatePad(GD $gd, $width, $height) {
|
||||
return $gd->paddedResize($width, $height);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an image object representing the image in the given format.
|
||||
|
Loading…
Reference in New Issue
Block a user