public function __construct() { if (!extension_loaded('gd')) { throw new Exception('GD does not appear to be available in your PHP installation. Please try another generator'); } }