function image_imagemagick_resize in Image 7
Same name and namespace in other branches
- 5.2 image.imagemagick.inc \image_imagemagick_resize()
- 5 image.imagemagick.inc \image_imagemagick_resize()
- 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);
}