Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Gmagick/ReduceNoiseFilter.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Gmagick;
8
9 use eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\AbstractFilter;
10 use Imagine\Image\ImageInterface;
11
12 class ReduceNoiseFilter extends AbstractFilter
13 {
19 public function apply(ImageInterface $image)
20 {
22 $gmagick = $image->getGmagick();
23 $gmagick->reduceNoiseImage((float)$this->getOption('radius', 0));
24
25 return $image;
26 }
27 }
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\AbstractFilter
Base implementation of FilterInterface, handling options.
Definition: AbstractFilter.php:13
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\AbstractFilter\getOption
getOption($optionName, $defaultValue=null)
Returns value for $optionName.
Definition: AbstractFilter.php:27
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Gmagick\ReduceNoiseFilter
Definition: Gmagick/ReduceNoiseFilter.php:13
eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\Gmagick
Definition: Gmagick/ReduceNoiseFilter.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.