public function load(ImageInterface $image, array $options = array()) { if (!empty($options)) { $this->filter->setOption('degrees', $options[0]); } return $this->filter->apply($image); }
public function load(ImageInterface $image, array $options = array()) { if (!$image instanceof ImagickImage && !$image instanceof GmagickImage) { throw new NotSupportedException('ReduceNoiseFilterLoader is only compatible with "imagick" and "gmagick" drivers'); } if (!empty($options)) { $this->filter->setOption('radius', $options[0]); } return $this->filter->apply($image); }