function image_imagick_resize_process in Imagick 7
Parameters
$res:
$width:
$height:
Return value
bool
1 string reference to 'image_imagick_resize_process'
- image_imagick_resize in effects/
imagick.resize.inc - Scale an image to the specified size using Imagick.
File
- effects/
imagick.resize.inc, line 31
Code
function image_imagick_resize_process($res, $width, $height) {
$filter = variable_get('image_resize_filter', imagick::FILTER_LANCZOS);
if ($filter == -1) {
return (bool) $res
->scaleImage($width, $height);
}
else {
return (bool) $res
->resizeImage($width, $height, $filter, 1);
}
}