Fix method check
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 27 Sep 2010 15:50:47 +0000 (11:50 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 27 Sep 2010 16:02:40 +0000 (12:02 -0400)
framework/Image/lib/Horde/Image/Effect/Imagick/LiquidResize.php

index cbc0d8d..58b6316 100644 (file)
@@ -32,13 +32,12 @@ class Horde_Image_Effect_Imagick_LiquidResize extends Horde_Image_Effect
         $this->_params = new Horde_Support_Array($this->_params);
         try {
             // Only supported if ImageMagick is compiled against lqr library.
-            if (method_exists($this->_image, 'liquidRescaleImage')) {
+            if (method_exists($this->_image->imagick, 'liquidRescaleImage')) {
                 $this->_image->imagick->liquidRescaleImage(
-                    $this->_params->width, $this->_params->height, $this->_params->delta_x, $this->_params['rigidity']);
+                    $this->_params->width, $this->_params->height, $this->_params->delta_x, $this->_params->rigidity);
             } else {
                 throw new Horde_Image_Exception('Missing support for lqr in ImageMagick.');
             }
-
         } catch (ImagickException $e) {
             throw new Horde_Image_Exception($e);
         }