public function SmartCropImageEffect::defaultConfiguration in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Plugin/ImageEffect/SmartCropImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\SmartCropImageEffect::defaultConfiguration()
- 8.2 src/Plugin/ImageEffect/SmartCropImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\SmartCropImageEffect::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ImageEffectBase::defaultConfiguration
File
- src/
Plugin/ ImageEffect/ SmartCropImageEffect.php, line 24
Class
- SmartCropImageEffect
- Crop an image preserving the portion with the most entropy.
Namespace
Drupal\image_effects\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'width' => NULL,
'height' => NULL,
'square' => FALSE,
'simulate' => FALSE,
'algorithm' => 'entropy_slice',
];
}