小白教程
所有教程
关于
Search
172.70.179.112
172.70.179.112
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Php gd info”的源代码
本页内容
下一节:
Php_getimagesize
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:gd_info()}}[[Category:PHP GD 图形处理函数参考手册|1]] = PHP gd_info - 取得当前安装的 GD 库的信息 = [[:Category:PHP GD 图形处理函数参考手册]] gd_info — 取得当前安装的 GD 库的信息。 === 语法 === <sample title="" desc="" lang="php" hererun="1"> array gd_info ( void ) </sample> 返回一个关联数组描述了安装的 GD 库的版本和性能。 == <sample title="" desc="" lang="php" hererun="1"> <?php var_dump(gd_info()); ?> </sample> 以上实例输出结果为: <sample title="" desc="" lang="php" hererun="1"> array(9) { ["GD Version"]=> string(24) "bundled (2.0 compatible)" ["FreeType Support"]=> bool(false) ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(false) ["JPG Support"]=> bool(false) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XBM Support"]=> bool(false) } </sample> 返回结果说明: {| class="table table-striped table-hover" ! 属性 ! 含义 |- | GD Version | string 值。描述了安装的 libgd 的版本。 |- | Freetype Support | boolean 值。如果安装了 Freetype 支持则为 '''TRUE'''。 |- | Freetype Linkage | string 值。描述了 Freetype 连接的方法。取值可能为:'with freetype', 'with TTF library' 和 'with unknown library'。本单元仅在 Freetype Support 的值为 '''TRUE''' 时有定义。 |- | T1Lib Support | boolean 值。如果包含有 T1Lib 支持则为 '''TRUE'''。 |- | GIF Read Support | boolean 值。如果包含有读取 GIF 图像的支持则为 '''TRUE'''。 |- | GIF Create Support | boolean 值。如果包含有创建 GIF 图像的支持则为 '''TRUE'''。 |- | JPG Support | boolean 值。如果包含有 JPG 支持则为 '''TRUE'''。 |- | PNG Support | boolean 值。如果包含有 PNG 支持则为 '''TRUE'''。 |- | WBMP Support | boolean 值。如果包含有 WBMP 支持则为 '''TRUE'''。 |- | XBM Support | boolean 值。如果包含有 XBM 支持则为 '''TRUE'''。 |} === 相关文章 === * [[php imagepng|imagepng()]] 以 PNG 格式将图像输出到浏览器或文件。 * [[php imagejpeg|imagejpeg()]] 以 JPEG 格式将图像输出到浏览器或文件。 * [[php imagegif|imagegif()]] 以 GIF 格式将图像输出到浏览器或文件。 * [[php imagewbmp|imagewbmp()]] 以 WBMP 格式将图像输出到浏览器或文件。 * [[php imagetypes|imagetypes()]] 返回当前 PHP 版本所支持的图像类型。 [[:Category:PHP GD 图形处理函数参考手册]]
返回至“
Php gd info
”。
下一节:
Php_getimagesize