libgd  2.3.3
About: LibGD is a library for the dynamic creation of images by programmers (PNG, JPEG, GIF, WebP, XPM, BMP support).
  Fossies Dox: libgd-2.3.3.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

No Matches
libgd Documentation

Some Fossies usage hints in advance:

  1. To see the Doxygen generated documentation please click on one of the items in the steelblue colored "quick index" bar above or use the side panel at the left which displays a hierarchical tree-like index structure and is adjustable in width.
  2. If you want to search for something by keyword rather than browse for it you can use the client side search facility (using Javascript and DHTML) that provides live searching, i.e. the search results are presented and adapted as you type in the Search input field at the top right.
  3. Doxygen doesn't incorporate all member files but just a definable subset (basically the main project source code files that are written in a supported language). So to search and browse all member files you may visit the Fossies libgd-2.3.3.tar.gz contents page and use the Fossies standard member browsing features (also with source code highlighting and additionally with optional code folding).

GD Graphics (Draw) Library

Build Status Chat

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

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

For security related issues, please contact us at

Support available in Chat or using issues.

We also have a mailing list. To subscribe to any mailing list, send an email to Then emails can be sent to


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.


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