You are here

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

File

effects/imagick.wave.inc, line 25

Code

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