function imagick_resize in Imagick 7
Image effect callback; Resize an image resource.
Parameters
$image: An image object returned by image_load().
$data: An array of attributes to use when performing the resize effect with the following items:
- "width": An integer representing the desired width in pixels.
- "height": An integer representing the desired height in pixels.
Return value
TRUE on success. FALSE on failure to resize image.
See also
2 string references to 'imagick_resize'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
- _imagick_alter_existing_effect_names in ./
imagick.install - Helper function to alter existing effect names
File
- effects/
imagick.resize.inc, line 58
Code
function imagick_resize(&$image, $data) {
image_toolkit_invoke('resize', $image, $data);
}