public function apply(&$image, $filter)
    {

        if ($image->isAnimated()) { // Ignore animated GIF for now
            return $this;
        }

        $image = $filter->apply($image);

        return $this;
    }
public function apply(&$image, $filter)
    {

        if ($image->isAnimated()) { // Ignore animated GIF for now
            return $this;
        }

        $image = $filter->apply($image);

        return $this;
    }
public function apply ( & $ image , $ filter ) { if ( $ image -> isAnimated ( ) ) { // Ignore animated GIF for now return $ this ; } $ image = $ filter -> apply ( $ image ) ; return $ this ; }
Apply a filter to the image. See Filters section for a list of available filters.

@param Image $image
@param FilterInterface $filter

@return Editor
Apply a filter to the image . See Filters section for a list of available filters .