diff --git a/src/app/code/community/Varien/Image/Adapter/Imagemagic.php b/src/app/code/community/Varien/Image/Adapter/Imagemagic.php index d510011..971b8c9 100644 --- a/src/app/code/community/Varien/Image/Adapter/Imagemagic.php +++ b/src/app/code/community/Varien/Image/Adapter/Imagemagic.php @@ -135,8 +135,12 @@ public function resize($frameWidth = null, $frameHeight = null) } } - // Resize - $imagick->setimageinterpolatemethod(imagick::INTERPOLATE_BICUBIC); + // Resize image. Bicubic interpolation does not always seem available, even with a high enough version of + // ImageMagick. However the default interpolation method also seems to produce decent results. + if (defined('Imagick::INTERPOLATE_BICUBIC')) { + $imagick->setimageinterpolatemethod(Imagick::INTERPOLATE_BICUBIC); + } + $imagick->scaleimage($frameWidth, $frameHeight, true); // Fill desired canvas