You are here

function imageapi_imagemagick_image_sharpen in ImageAPI 5

Same name and namespace in other branches
  1. 6 imageapi_imagemagick.module \imageapi_imagemagick_image_sharpen()

File

./imageapi_imagemagick.module, line 132
ImageMagick toolkit functions

Code

function imageapi_imagemagick_image_sharpen(&$image, $radius, $sigma, $amount, $threshold) {
  $unsharp_arg = $radius . 'x' . $sigma . '+' . $amount / 100 . '+' . $threshold;
  $image->ops[] = '-unsharp ' . $unsharp_arg;
  return TRUE;
}