info() php,PHP图像函数之gd_info()

首先,PHP是最好的语言!

下面我们来说下PHP图像处理函数中的gd_info()函数。

7dac9e31597cdd830906d76dca59eeb9.png

gd_info() --取得当前安装的 GD 库的信息。

下面我们来实际输出一下(以THINKPHP5.0版本为例):

/**

* PHP 图像函数

*/

public function imgClass()

{

//取得当前安装的 GD 库的信息

var_dump(gd_info());

}

返回结果是数组,共有12个序列,下面将一一介绍。array (size=12)

'GD Version' => string 'bundled (2.1.0 compatible)' (length=26)

'FreeType Support' => boolean true

'FreeType Linkage' => string 'with freetype' (length=13)

'GIF Read Support' => boolean true

'GIF Create Support' => boolean true

'JPEG Support' => boolean true

'PNG Support' => boolean true

'WBMP Support' => boolean true

'XPM Support' => boolean true

'XBM Support' => boolean true

'WebP Support' => boolean true

'JIS-mapped Japanese Font Support' => boolean false

属性含义GD Version安装的 libgd 的版本。

Freetype Support如果安装了 Freetype 支持则为 TRUE。

Freetype LinkageFreetype 连接的方法。取值可能为:'with   freetype', 'with TTF library' 和 'with unknown   library'。本单元仅在 Freetype Support 的值为 TRUE 时有定义。

GIF Read Support如果包含有读取 GIF 图像的支持则为 TRUE。

GIF Create Support如果包含有创建 GIF 图像的支持则为 TRUE。

JPG Support如果包含有 JPG 支持则为 TRUE。

PNG Support如果包含有 PNG 支持则为 TRUE。

WBMP Support如果包含有 WBMP 支持则为 TRUE。

XPM Support如果包含有 XPM 支持则为 TRUE。

XBM Support如果包含有 XBM 支持则为 TRUE。

WebP  Support如果包含有 WebP 支持则为 TRUE。

JIS-mapped Japanese Font Support如果包含有 JIS-mapped Japanese Font Support 支持则为 TRUE。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值