/** * @param ImageInterface|\Imagine\Gmagick\Image $image * * @return ImageInterface */ public function apply(ImageInterface $image) { /** @var \Gmagick $gmagick */ $gmagick = $image->getGmagick(); $gmagick->reduceNoiseImage((double) $this->getOption('radius', 0)); return $image; }
/** * @param ImageInterface|\Imagine\Gmagick\Image $image * * @return ImageInterface */ public function apply(ImageInterface $image) { /** @var \Gmagick $gmagick */ $gmagick = $image->getGmagick(); $gmagick->swirlimage((double) $this->getOption('degrees', 60)); return $image; }
protected function getImageResolution(ImageInterface $image) { return $image->getGmagick()->getimageresolution(); }