You are here

function image_imagick_crop_process in Imagick 7

Parameters

$res:

$x:

$y:

$width:

$height:

Return value

bool

1 string reference to 'image_imagick_crop_process'
image_imagick_crop in effects/imagick.crop.inc
Crop an image using the Imagick toolkit.

File

effects/imagick.crop.inc, line 37

Code

function image_imagick_crop_process($res, $x, $y, $width, $height) {
  if (!$res
    ->cropImage($width, $height, $x, $y)) {
    return FALSE;
  }
  return (bool) $res
    ->setImagePage($width, $height, 0, 0);
}