public function ConvolveImageEffect::applyEffect in Imagick 8
Applies an image effect to the image object.
Parameters
\Drupal\Core\Image\ImageInterface $image: An image file object.
Return value
bool TRUE on success. FALSE if unable to perform the image effect on the image.
Overrides ImageEffectInterface::applyEffect
File
- src/
Plugin/ ImageEffect/ ConvolveImageEffect.php, line 23  
Class
- ConvolveImageEffect
 - Applies the convolve effect on an image resource.
 
Namespace
Drupal\imagick\Plugin\ImageEffectCode
public function applyEffect(ImageInterface $image) {
  if (!$image
    ->apply('convolve', $this->configuration)) {
    $this->logger
      ->error('Image convolve failed using the %toolkit toolkit on %path (%mimetype)', [
      '%toolkit' => $image
        ->getToolkitId(),
      '%path' => $image
        ->getSource(),
      '%mimetype' => $image
        ->getMimeType(),
    ]);
    return FALSE;
  }
  return TRUE;
}