function image_imagick_crop in Imagick 7
Crop an image using the Imagick toolkit.
Parameters
$image: An image object. The $image->resource, $image->info['width'], and $image->info['height'] values will be modified by this call.
$x: The starting x offset at which to start the crop, in pixels.
$y: The starting y offset at which to start the crop, in pixels.
$width: The width of the cropped area, in pixels.
$height: The height of the cropped area, in pixels.
Return value
TRUE or FALSE, based on success.
See also
1 call to image_imagick_crop()
- image_imagick_smartcrop_crop in imagick_smartcrop/
imagick_smartcrop.inc - Crop an image, removing the lowest entropy areas.
File
- effects/
imagick.crop.inc, line 22
Code
function image_imagick_crop(stdClass $image, $x, $y, $width, $height) {
$image->info['width'] = $width;
$image->info['height'] = $height;
return _imagick_process_frames($image, 'image_imagick_crop_process', func_get_args());
}