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