首页
学习
活动
专区
工具
TVP
发布

PHP图像函数之gd

首先,PHP是最好的语言!

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

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

  • 发表于:
  • 原文链接https://kuaibao.qq.com/s/20190210G0NYQK00?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券