You are here

function image_imagemagick_resize in Image 7

Same name and namespace in other branches
  1. 5.2 image.imagemagick.inc \image_imagemagick_resize()
  2. 5 image.imagemagick.inc \image_imagemagick_resize()
  3. 6 image.imagemagick.inc \image_imagemagick_resize()

Resize an image to the given width and height.

File

./image.imagemagick.inc, line 95

Code

function image_imagemagick_resize($source, $dest, $width, $height) {
  $args = array(
    'resize' => '-resize ' . (int) $width . 'x' . (int) $height . '!',
  );
  $args = _image_imagemagick_alter_invoke('resize', $source, $args);
  return _image_imagemagick_convert($source, $dest, $args);
}