From 0dd195996db1d3f21634adb50d6d51b791fc78c9 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 16 Feb 2010 20:07:00 -0500 Subject: [PATCH] 3rd try --- ansel/lib/ImageView/PolaroidStack.php.php | 44 ------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 ansel/lib/ImageView/PolaroidStack.php.php diff --git a/ansel/lib/ImageView/PolaroidStack.php.php b/ansel/lib/ImageView/PolaroidStack.php.php deleted file mode 100644 index b2b2ddbb7..000000000 --- a/ansel/lib/ImageView/PolaroidStack.php.php +++ /dev/null @@ -1,44 +0,0 @@ - - * @package Ansel - */ -class Ansel_ImageView_PolaroidStack extends Ansel_ImageView -{ - public $need = array('PhotoStack'); - - /** - * - * @return Horde_Image - */ - protected function _create() - { - $imgobjs = $this->_getStackImages(); - $style = $this->_params['style']; - $params = array('width' => 100, - 'height' => 100, - 'background' => $style['background']); - - $baseImg = Ansel::getImageObject($params); - try { - $baseImg->addEffect( - 'PhotoStack', - array('images' => $imgobjs, - 'resize_height' => $GLOBALS['conf']['thumbnail']['height'], - 'padding' => 10, - 'background' => $style['background'], - 'type' => 'polaroid')); - $baseImg->applyEffects(); - $baseImg->resize($GLOBALS['conf']['thumbnail']['width'], - $GLOBALS['conf']['thumbnail']['height']); - - } catch (Horde_Image_Exception $e) { - return false; - } - - return $baseImg; - } - -} -- 2.11.0