function image_imagemagick_resize in Image 5.2
Same name and namespace in other branches
- 5 image.imagemagick.inc \image_imagemagick_resize()
- 6 image.imagemagick.inc \image_imagemagick_resize()
- 7 image.imagemagick.inc \image_imagemagick_resize()
Resize an image to the given width and height.
File
- ./
image.imagemagick.inc, line 94
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);
}