From 2f09aa0ef7c030c1c73e455b026394b18d88008e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 27 May 2009 14:14:46 -0400 Subject: [PATCH] This isn't ready to be removed yet --- framework/Image/lib/Horde/Image/Im.php | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/framework/Image/lib/Horde/Image/Im.php b/framework/Image/lib/Horde/Image/Im.php index 0ad8c16cf..c6c943b63 100644 --- a/framework/Image/lib/Horde/Image/Im.php +++ b/framework/Image/lib/Horde/Image/Im.php @@ -122,25 +122,25 @@ class Horde_Image_Im extends Horde_Image } } -// /** -// * Load the image data from a string. Need to override this method -// * in order to load the imagick object if we need to. -// * -// * @TODO: This can be nuked when imagick is broken out. -// * -// * @param string $id An arbitrary id for the image. -// * @param string $image_data The data to use for the image. -// */ -// public function loadString($id, $image_data) -// { -// parent::loadString($id, $image_data); -// if (!is_null($this->_imagick)) { -// $this->_imagick->clear(); -// $this->_imagick->readImageBlob($image_data); -// $this->_imagick->setFormat($this->_type); -// $this->_imagick->setIteratorIndex(0); -// } -// } + /** + * Load the image data from a string. Need to override this method + * in order to load the imagick object if we need to. + * + * @TODO: This can be nuked when imagick is broken out. + * + * @param string $id An arbitrary id for the image. + * @param string $image_data The data to use for the image. + */ + public function loadString($id, $image_data) + { + parent::loadString($id, $image_data); + if (!is_null($this->_imagick)) { + $this->_imagick->clear(); + $this->_imagick->readImageBlob($image_data); + $this->_imagick->setFormat($this->_type); + $this->_imagick->setIteratorIndex(0); + } + } /** * Load the image data from a file. Need to override this method -- 2.11.0