public function apply(&$image, $filter) { if ($image->isAnimated()) { // Ignore animated GIF for now return $this; } $image = $filter->apply($image); return $this; }