Lines Matching refs:gd_info
522 $gd_info = gd_info();
523 $isbundled = (strpos($gd_info['GD Version'], 'bundled') !== false);
532 $gd_info = gd_info();
533 if (preg_match('#bundled \((.+)\)$#i', $gd_info['GD Version'], $matches)) {
534 $cache_gd_version[1] = $gd_info['GD Version']; // e.g. "bundled (2.0.15 compatible)"
537 $cache_gd_version[1] = $gd_info['GD Version']; // e.g. "1.6.2 or higher"
538 …$cache_gd_version[0] = (float) substr($gd_info['GD Version'], 0, 3); // e.g. "1.6" (not "1.6.2 or …
952 function gd_info() { function
953 static $gd_info = array();
954 if (empty($gd_info)) {
957 $gd_info = array(
972 foreach ($gd_info as $key => $value) {
976 $gd_info[$key] = $newvalue;
980 if (empty($gd_info['GD Version'])) {
985 $gd_info['PNG Support'] = true;
988 $gd_info['GIF Create Support'] = true;
991 $gd_info['JPG Support'] = true;
994 $gd_info['WBMP Support'] = true;
1007 $gd_info['GIF Read Support'] = (bool) @imagecreatefromgif($tempfilename);
1013 $gd_info['GD Version'] = '2.0.1 or higher (assumed)';
1015 $gd_info['GD Version'] = '1.6.0 or higher (assumed)';
1019 return $gd_info;