From 6600c92be0de1f36d9b1861b62f18b238b43fe76 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Fri, 24 Aug 2007 03:53:37 +0000 Subject: [PATCH] Added Pad method to Image git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40818 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Image.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/model/Image.php b/core/model/Image.php index e4f1e0e0b..03e30a1a6 100755 --- a/core/model/Image.php +++ b/core/model/Image.php @@ -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.