You are here

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

File

effects/imagick.definecanvas.inc, line 37

Code

function imagick_definecanvas_dimensions(array &$dimensions, array $data) {
  list($width, $height) = _imagick_definecanvas_get_dimensions($dimensions, $data['exact_measurements'], $data['exact'], $data['relative']);
  $dimensions['width'] = $width;
  $dimensions['height'] = $height;
}