libgd 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
libgd 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
libgd 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !

软件简介

GD Graphics (Draw) Library

Build Status Chat codecov.io

GD is an open source code library for the dynamic creation of images by programmers.

GD is written in C, and "wrappers" are available for Perl, PHP and other languages. GD can read and write many different image formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly.

The most common applications of GD involve website development, although it can be used with any standalone application!

The library was originally developed by Thomas Boutell and is now maintained by many contributors (see the CONTRIBUTORS file) under the umbrella of PHP.net.

If you like to contribute, report bugs, see how to contribute document

For security related issues, please contact us at security@libgd.org

Support available in Chat or using issues.

We also have a mailing list. To subscribe to any mailing list, send an email to gd-devel-subscribe@lists.php.net. Then emails can be sent to gd-devel@lists.php.net.

Downloads/etc...

Please visit our homepage for more details.

Supported Image Formats

GD has support for:

Besides that, GD depends on some external libraries, which are all optional and disabled by default:

  • FreeType for rendering fonts
  • Fontconfig for configuring and customizing font access
  • libraqm for complex text layout
  • libimagequant for conversion of RGBA images to 8-bit indexed-color images
    • NOTE libimagequant is dual-licensed: GPLv3 and commercial license

Platforms supported

CI means whether we have an automatic CI for this platform. If someone has CI for these platforms or any other platforms not listed here and would like to add them to our automatic CI, please get in touch with us, it will much appreciated!

Platform Support CI
Linux x64
Linux x86
Linux ARM64
Windows x86
Windows x64
Windows arm64 x
macOS x64
macOS M1 x
S390 x

It is also known to work on almost all variations of *BSD, Solaris, etc. We don't have CI nor environment to test them. However many progamming languages binding do test libgd on these platforms.

Compilers

It should compile with all C99 and C++ compliant compilers, either using CMake or the configure script.

We do have CI using:

  • GCC
  • CLang
  • Visual Studio
  • Xcode
  • MingW

Supported Versions

  • GD 2.3 (Branch GD-2.3) serie is in active support for bug fixes. No new additions will be added.
  • GD 2.4 (master) is the active development branch. No release date yet.
  • GD 3.0 has been started, focusing on high quality 2D Vector drawing APIs and full support of actual ARGB 32 bits/8bits or float. It is not production ready yet
展开阅读全文

代码

评论 (0)

加载中
更多评论
暂无内容
发表了博客
2015/01/27 17:23

OpenWrt利用luagd库生成图片验证码

纯粹瞎折腾。 OpenWrt的feeds没有luagd,需自行添加(还有luagd依赖libgd库)。软件包Makefile如下: # # Copyright (C) 2009-2013 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=luagd PKG_VERSION:=2.0.33 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz...

0
2
发表于软件架构专区
2019/01/27 19:31

在Windows下编译Nginx并添加http_image_filter_module模块

本次编译的Nginx的版本是 *Nginx-1.15.9* 操作系统是 *Windows7 64位* 本人对VS也不是很熟悉,靠着nginx官网资料以及网上一些前辈的资料,对nginx重新编译并添加 http_image_filter_module模块,网上的添加http_image_filter_module模块的文章大多都是在Linux系统中编译,Windows环境比较少。没有现成的gd图形库,所以自己摸索着来编译,仅以此文记录。 ## 1.搭建编译环境 1.安装VS2015 [地址](https://msdn.itellyou.cn/) 不需...

0
1
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
0 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部