You are here

function imagick_frame_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_frame_dimensions'
imagick_image_effect_info in ./imagick.module
Implements hook_image_effect_info()

File

effects/imagick.frame.inc, line 43

Code

function imagick_frame_dimensions(array &$dimensions, array $data) {
  if (!empty($dimensions['width']) && !empty($dimensions['height'])) {
    $dimensions['width'] += $data['width'] * 2;
    $dimensions['height'] += $data['height'] * 2;
  }
}