{
$this->_params = new Horde_Support_Array($this->_params);
try {
- $this->_image->imagick->liquidRescaleImage(
- $this->_params->width, $this->_params->height, $this->_params->delta_x, $this->_params['rigidity']);
+ // Only supported if ImageMagick is compiled against lqr library.
+ if (method_exists($this->_image, 'liquidRescaleImage')) {
+ $this->_image->imagick->liquidRescaleImage(
+ $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);
}