checkGD() public static method

Require GD library
public static checkGD ( boolean $thowException = true ) : boolean
$thowException boolean
return boolean
Beispiel #1
0
 /**
  * Constructor
  *
  * @param string|null $filename
  * @param bool|null $strict
  *
  * @throws Exception
  * @throws \JBZoo\Utils\Exception
  */
 public function __construct($filename = null, $strict = false)
 {
     Helper::checkGD();
     if (ctype_print($filename) && FS::isFile($filename)) {
         $this->loadFile($filename);
     } elseif (Helper::isGdRes($filename)) {
         $this->loadResource($filename);
     } elseif (is_string($filename) && $filename) {
         $this->loadString($filename, $strict);
     }
 }