看板FreeBSD
标 题Re: [问题] php4 + gd2 是不是支援 gif 了
发信站SayYA 资讯站 (Wed Jun 2 09:29:47 2004)
转信站ptt!ctu-reader!news.nctu!SayYa
※ 引述《[email protected] (东方不败风云再起)》之铭言:
> # pkg_info | grep gd
> gd-2.0.15_1,1 A graphics library for fast creation of images
> # pkg_info | grep php
> php4-4.3.6_1 PHP Scripting Language (Apache Module and CLI)
> #php -r 'var_dump(function_exists("imagegif"));'
> bool(true)
> #php -r 'var_dump(function_exists("imagecreatefromgif"));'
> bool(true)
> php manual 有提到两点
> 1.
> Note: Since all GIF support was removed from the GD library in version 1.6,
> this function is not available if you are using that version of the GD library.
> 2.
> Only supported in GD versions older than gd-1.6. Read-only GIF support is
> available with PHP 4.3.0 and the bundled GD-library.
> 第二点所提的Read-only是指 ?
gif 有专利权利金的问题,所以 gd 程式库目前已经在後来的版本移除 gif
格式支援。
read-only 表示只有支援读取格式内容,不支援产生与输出任何 gif 图片
格式档案。
--
相信一种真诚存在於心与心之间...
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: 61-221-29-87.hinet-ip.hinet.net