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