$oldImagick = version_compare(phpversion('imagick'), '3', '<');
try
{
foreach ($this->_image AS $frame)
{
if ($scaleUp)
{
$frame->resizeImage($width, $height, Imagick::FILTER_QUADRATIC, .5, true);
}
else if ($oldImagick)
{
// the fill param wasn't added until imagick 3.0 so we can't pass it without an error
$frame->thumbnailImage($width, $height, true);
}
else
{
$frame->thumbnailImage($width, $height, true, true);
}
$frame->setImagePage($width, $height, 0, 0);
}
$this->_updateDimensionCache();
}
catch (Exception $e)
{
XenForo_Error::logException($e, false);
return false;
}
ImagickException: Fill parameter is only supported with ImageMagick 6.3.2+
We use essential cookies to make this site work, and optional cookies to enhance your experience.