diff --git a/src/app/code/community/Varien/Image/Adapter/Imagemagic.php b/src/app/code/community/Varien/Image/Adapter/Imagemagic.php index a5c6ce2..074e670 100644 --- a/src/app/code/community/Varien/Image/Adapter/Imagemagic.php +++ b/src/app/code/community/Varien/Image/Adapter/Imagemagic.php @@ -136,13 +136,14 @@ public function resize($frameWidth = null, $frameHeight = null) } // Resize - $imagick->setimageinterpolatemethod(imagick::INTERPOLATE_BICUBIC); + if (defined('imagick::INTERPOLATE_BICUBIC')) { + $imagick->setimageinterpolatemethod(imagick::INTERPOLATE_BICUBIC); + } $imagick->scaleimage($frameWidth, $frameHeight, true); // Fill desired canvas if ($this->keepFrame() === TRUE - && $frameWidth != $origWidth - && $frameHeight != $origHeight + && ($frameWidth != $origWidth || $frameHeight != $origHeight) ) { $composite = new Imagick(); $color = $this->_backgroundColor;