You are here

public function ScaleAndSmartCropImageEffect::defaultConfiguration in Image Effects 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageEffect/ScaleAndSmartCropImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\ScaleAndSmartCropImageEffect::defaultConfiguration()
  2. 8 src/Plugin/ImageEffect/ScaleAndSmartCropImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\ScaleAndSmartCropImageEffect::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ImageEffectBase::defaultConfiguration

File

src/Plugin/ImageEffect/ScaleAndSmartCropImageEffect.php, line 24

Class

ScaleAndSmartCropImageEffect
Scale and crop an image preserving the portion with the most entropy.

Namespace

Drupal\image_effects\Plugin\ImageEffect

Code

public function defaultConfiguration() {
  return [
    'width' => NULL,
    'height' => NULL,
    'upscale' => FALSE,
    'simulate' => FALSE,
    'algorithm' => 'entropy_slice',
  ];
}