You are here

protected function Desaturate::process in Imagick 8

File

src/Plugin/ImageToolkit/Operation/imagick/Desaturate.php, line 26

Class

Desaturate
Defines imagick desaturate operation.

Namespace

Drupal\imagick\Plugin\ImageToolkit\Operation\imagick

Code

protected function process(Imagick $resource, array $arguments) {
  return $resource
    ->setImageType(Imagick::IMGTYPE_GRAYSCALEMATTE);
}