Go to file
Ziding Zhang 2f76f48837
Create SECURITY.md (#775)
A simple instruction for security researchers.
2022-01-23 13:31:55 +07:00
.github use current macOS naming style consistently 2021-10-30 13:49:21 -04:00
cmake cleanup Windows CRLF line endlings 2021-09-11 12:48:02 -04:00
config use current macOS naming style consistently 2021-10-30 13:49:21 -04:00
docs use current macOS naming style consistently 2021-10-30 13:49:21 -04:00
examples docs: Fix a few typos 2021-09-23 01:13:40 -04:00
m4 Upgrade AX_REQUIRE_DEFINED macro file 2018-09-06 00:32:54 -04:00
src #797 possible leak on png error, returns from setjmp lost the row_poi… (#802) 2022-01-23 11:57:49 +07:00
suppression Merge from 2.3 2021-09-11 23:38:22 +07:00
test Remove one more outstanding Makefile.am 2013-04-08 09:21:16 +02:00
tests #797 possible leak on png error, returns from setjmp lost the row_poi… (#802) 2022-01-23 11:57:49 +07:00
windows use https://libgd.org 2021-07-05 23:59:35 -04:00
.gitattributes add them too and enforce lf, so I don't mess it up again 2021-09-11 11:41:03 +07:00
.gitignore gitignore: update Windows tools 2021-02-02 21:59:15 -05:00
CHANGELOG.md release 2.3.2 2021-03-06 14:16:01 -05:00
CMakeLists.txt #788 fix bug in HEIF usage, stride is require (#801) 2022-01-22 17:29:04 +07:00
CODE_OF_CONDUCT.md Update email 2021-07-16 18:15:56 +07:00
CONTRIBUTING.md use current macOS naming style consistently 2021-10-30 13:49:21 -04:00
CONTRIBUTORS AVIF support (#671) 2021-03-03 21:35:56 -05:00
COPYING Just make it easier for the doc 2021-08-20 11:20:16 +07:00
Makefile.am drop support for VMS #453 2021-04-24 23:30:42 -04:00
README.md use current macOS naming style consistently 2021-10-30 13:49:21 -04:00
SECURITY.md Create SECURITY.md (#775) 2022-01-23 13:31:55 +07:00
bootstrap.sh use current macOS naming style consistently 2021-10-30 13:49:21 -04:00
configure.ac fix help message 2021-10-05 00:27:16 -04:00

README.md

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