You are here

function iek_get_image_filters in Image effect kit 8

Same name and namespace in other branches
  1. 7 iek.module \iek_get_image_filters()

Gets a list of available image filters.

Return value

array All available filters array.

2 calls to iek_get_image_filters()
ImageFilterEffect::buildConfigurationForm in src/Plugin/ImageEffect/ImageFilterEffect.php
Form constructor.
ImageFilterEffect::getSummary in src/Plugin/ImageEffect/ImageFilterEffect.php
Returns a render array summarizing the configuration of the image effect.

File

./iek.module, line 275
Contains "iek" module.

Code

function iek_get_image_filters() {
  $filters = [
    IMG_FILTER_NEGATE => t('Negate'),
    IMG_FILTER_GRAYSCALE => t('Grayscale'),
    IMG_FILTER_BRIGHTNESS => t('Brightness'),
    IMG_FILTER_CONTRAST => t('Contrast'),
    IMG_FILTER_COLORIZE => t('Colorize'),
    IMG_FILTER_EDGEDETECT => t('Edgedetect'),
    IMG_FILTER_EMBOSS => t('Emboss'),
    IMG_FILTER_GAUSSIAN_BLUR => t('Gaussian blur'),
    IMG_FILTER_SELECTIVE_BLUR => t('Selective blur'),
    IMG_FILTER_MEAN_REMOVAL => t('Mean removal'),
    IMG_FILTER_SMOOTH => t('Smooth'),
  ];
  return $filters;
}