function imagick_shadow_dimensions in Imagick 7
Parameters
$dimensions: Dimensions to be modified - an array with components width and height, in pixels.
$data:
1 string reference to 'imagick_shadow_dimensions'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.shadow.inc, line 46
Code
function imagick_shadow_dimensions(array &$dimensions, array $data) {
if (!empty($dimensions['width']) && !empty($dimensions['height'])) {
// Image will increase 4px
$dimensions['width'] += $data['sigma'] * 4;
$dimensions['height'] += $data['sigma'] * 4;
}
}