You are here

protected function Posterize::process in Imagick 8

File

src/Plugin/ImageToolkit/Operation/imagick/Posterize.php, line 34

Class

Posterize
Defines imagick solarize operation.

Namespace

Drupal\imagick\Plugin\ImageToolkit\Operation\imagick

Code

protected function process(Imagick $resource, array $arguments) {
  return $resource
    ->posterizeImage($arguments['colors'], TRUE);
}