/**
  * @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;
 }
示例#2
0
 /**
  * @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;
 }
示例#3
0
 protected function getImageResolution(ImageInterface $image)
 {
     return $image->getGmagick()->getimageresolution();
 }