You are here

function image_imagick_posterize in Imagick 7

Posterizes an image

Parameters

$image: An image object. The $image->resource value will be modified by this call.

$level: The strenght of the effect

Return value

TRUE or FALSE, based on success.

File

effects/imagick.posterize.inc, line 13

Code

function image_imagick_posterize(stdClass $image, $levels) {
  return $image->resource
    ->posterizeImage($levels, TRUE);
}