/**
* Draw a DrawingObject on the image. See Drawing Objects section.
*
* @param Image $image
* @param DrawingObjectInterface $drawingObject
*
* @return $this
*/
public function draw(&$image, $drawingObject)
{
if ($image->isAnimated()) {
// Ignore animated GIF for now
return $this;
}
$image = $drawingObject->draw($image);
return $this;
}