用GD可以生成动态GIF吗?

Semon 2003-08-22 06:01:56
如果可以的话有没有例程?或者教程?
谢谢!
...全文
56 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
ashchen 2003-09-09
  • 打赏
  • 举报
回复
http://www.boutell.com/gd/faq.html里有这样一段

When will you put GIF support back into gd?

Many have asked whether gd will support creating GIF files again, since we have passed June 20th, 2003, when the well-known Unisys LZW patent expired in the US. Although this patent has expired in the United States, this patent does not expire for another year in the rest of the world. Since I have no way of limiting distribution of GIF-creating code to US users only that is guaranteed to please somebody else's lawyer, I have opted to follow the same policy that the ImageMagick authors are following: GIF creation will not reappear in gd until the patent expires world-wide on July 7th, 2004. I realize this situation is frustrating for many; please direct your anger and complaints toward the questionable patent system that allows the patenting of such straightforward algorithms in the first place. Thank you!

即使支持了GIF GD也无法生成能动的图片。
php的图像函数其实都差不多,区别只是图片的格式
breaknife 2003-09-09
  • 打赏
  • 举报
回复
楼上所说的cgi应该是gif吧?
明年到期????真的假的????
期待…………
xuzuning 2003-08-23
  • 打赏
  • 举报
回复
1、动画是不可以的。
2、鉴于版权的问题,目前不支持cgi了
3、cgi专利很快就要到期了,估计明年就能支持cgi了

phpro 2003-08-23
  • 打赏
  • 举报
回复
我想楼主想问的是动画GIF的,按照理论应该是不行的,因为IMAGE函数中没有控制图象时间的函数。
bushido 2003-08-22
  • 打赏
  • 举报
回复
我觉得可以的
sailor001 2003-08-22
  • 打赏
  • 举报
回复
3.X以下应该可以吧
blueoxygen 2003-08-22
  • 打赏
  • 举报
回复
例子--得到IP生成图片
<?
Header("Content-type: image/png");
$img = ImageCreate(180,50);
$ip = $_SERVER['REMOTE_ADDR'];
ImageColorTransparent($img,$bgcolor);
$bgColor = ImageColorAllocate($img, 0x2c,0x6D,0xAF); // 背景颜色
$shadow = ImageColorAllocate($img, 250,0,0); // 阴影颜色
$textColor = ImageColorAllocate($img, oxff,oxff,oxff); // 字体颜色
ImageTTFText($img,10,0,78,30,$shadow,"d:/windows/fonts/Tahoma.ttf",$ip); //显示背景
ImageTTFText($img,10,0,25,28,$textColor,"d:/windows/fonts/Tahoma.ttf","your ip is".$ip); // 显示IP
ImagePng($img);
imagecreatefrompng($img);
ImageDestroy($img);
?>
blueoxygen 2003-08-22
  • 打赏
  • 举报
回复
最好用PNG格式,新版本自己安装GD吧
GD的优点就是动态啊,当然能动态生成了
你要实现的功能说说
cpio 2003-08-22
  • 打赏
  • 举报
回复
旧版本也不能做动态的吧?
ustb 2003-08-22
  • 打赏
  • 举报
回复
旧版本是可以的,现在的新版本由于版权问题而不能了。

21,882

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧