Exemplo n.º 1
0
 /**
  * Apply a filter to the image. See Filters section for a list of available filters.
  *
  * @param Image $image
  * @param FilterInterface $filter
  *
  * @return Editor
  */
 public function apply(&$image, $filter)
 {
     if ($image->isAnimated()) {
         // Ignore animated GIF for now
         return $this;
     }
     $image = $filter->apply($image);
     return $this;
 }