You are here

public function DefineCanvasImageEffect::defaultConfiguration in Imagick 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ImageEffectBase::defaultConfiguration

File

src/Plugin/ImageEffect/DefineCanvasImageEffect.php, line 38

Class

DefineCanvasImageEffect
Applies the define canvas effect on an image resource.

Namespace

Drupal\imagick\Plugin\ImageEffect

Code

public function defaultConfiguration() {
  return [
    'HEX' => '#FFFFFF',
    'under' => TRUE,
    'exact_measurements' => TRUE,
    'exact' => [
      'width' => '100',
      'height' => '100',
      'anchor' => 'center-center',
    ],
    'relative' => [
      'leftdiff' => '20',
      'rightdiff' => '20',
      'topdiff' => '20',
      'bottomdiff' => '20',
    ],
  ];
}