You are here

function image_imagick_resize in Imagick 7

Scale an image to the specified size using Imagick.

Parameters

$image: An image object. The $image->resource, $image->info['width'], and $image->info['height'] values will be modified by this call.

$width: The new width of the resized image, in pixels.

$height: The new height of the resized image, in pixels.

Return value

TRUE or FALSE, based on success.

See also

image_resize()

1 call to image_imagick_resize()
image_imagick_smartcrop_scale in imagick_smartcrop/imagick_smartcrop.inc
Scale and crop an image to the specified size using Imagemagick.

File

effects/imagick.resize.inc, line 18

Code

function image_imagick_resize(stdClass $image, $width, $height) {
  $image->info['width'] = $width;
  $image->info['height'] = $height;
  return _imagick_process_frames($image, 'image_imagick_resize_process', func_get_args());
}