protected function Contrast::execute in Image Effects 8.3
Same name in this branch
- 8.3 src/Plugin/ImageToolkit/Operation/gd/Contrast.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\Contrast::execute()
- 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/Contrast.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Contrast::execute()
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/Operation/imagemagick/Contrast.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Contrast::execute()
- 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/Contrast.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Contrast::execute()
File
- src/
Plugin/ ImageToolkit/ Operation/ imagemagick/ Contrast.php, line 26
Class
- Contrast
- Defines ImageMagick Contrast operation.
Namespace
Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagickCode
protected function execute(array $arguments) {
if ($arguments['level']) {
$this
->addArgument('-brightness-contrast ' . $this
->escapeArgument('0x' . $arguments['level']));
}
return TRUE;
}