You are here

function imagick_image_effect_info_alter in Imagick 7

Implements hook_image_effect_info_alter()

File

./imagick.module, line 665
Imagick toolkit for image manipulation within Drupal.

Code

function imagick_image_effect_info_alter(&$effects) {

  // #2485715 Do nothing when image toolkit is not used
  if (variable_get('image_toolkit', 'gd') != 'imagick') {
    return;
  }

  // Delete effects we override to prevent duplicates
  unset($effects['image_crop'], $effects['image_rotate'], $effects['image_resize']);

  // Sort effects
  ksort($effects);
}