You are here

protected function Sharpen::process in Imagick 8

File

src/Plugin/ImageToolkit/Operation/imagick/Sharpen.php, line 43

Class

Sharpen
Defines imagick sharpen operation.

Namespace

Drupal\imagick\Plugin\ImageToolkit\Operation\imagick

Code

protected function process(Imagick $resource, array $arguments) {
  return $resource
    ->unsharpMaskImage($arguments['radius'], $arguments['sigma'], $arguments['amount'], $arguments['threshold']);
}