GD 和 GD2 图像有什么区别?

发布于 2024-09-05 12:13:28 字数 335 浏览 2 评论 0原文

阅读 imagegd2()imagegd(),我注意到函数的描述分别为:

  • Output GD2 image to browser or file
  • Output GD image to浏览器或文件

什么是 GD2 和 GD 图像?这些图像类型之间有什么区别?

Reading the documentation for imagegd2(), and imagegd(), I noticed the functions are described, respectively as:

  • Output GD2 image to browser or file
  • Output GD image to browser or file

What are a GD2, and a GD image? What are the difference between those image types?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

旧时浪漫 2024-09-12 12:13:28

gd 是一个旧的 c 库,gd2 是更新的库。 php 使用 gd2.

gd is an old c library, gd2 is the updated one. php uses gd2.

一江春梦 2024-09-12 12:13:28

GD 的某些版本仅生成 PNG,但最新版本可以生成 GIF 和 PNG。很快,下一个 PHP 版本将不再支持 GD 1

Some version of GD generates only PNG, but recent version can ganerate GIF and PNG. Soon GD 1 will be no longer supported in next version of PHP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文