Exemplo n.º 1
0
 /**
  * Checks if the output of transform() for this file is likely
  * to be valid. If this is false, various user elements will
  * display a placeholder instead.
  *
  * Currently, this checks if the file is an image format
  * that can be converted to a format
  * supported by all browsers (namely GIF, PNG and JPEG),
  * or if it is an SVG image and SVG conversion is enabled.
  *
  * @return bool
  */
 function canRender()
 {
     if (!isset($this->canRender)) {
         $this->canRender = $this->getHandler() && $this->handler->canRender($this);
     }
     return $this->canRender;
 }