What is the GD library?
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 creates PNG, JPEG, GIF, WebP, XPM, BMP images, among other formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly. While not restricted to use on the web, the most common applications of GD involve website development.
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 email@example.com
Please visit our homepage for more details.
Supported Image Formats
GD has builtin support for:
It also has optional support for more formats via external libraries:
- JPEG via IJG/libjpeg or libjpeg-turbo
- Does not include JPEG 2000
- PNG via libpng
- TIFF via libtiff
- WebP via libwebp
- XPM via libXpm
configure: error: Unable to find libgd.(a|so) >= 2.1.0 anywhere under /usr
yum -y install gcc gcc-c++ make expat-devel
cd ~wget https://github.com/libgd/libgd/releases/download/gd-2.2.5/libgd-2.2.5.tar.gz
cd ~tar -xf libgd-2.2.5.tar.gz
cd ~/libgd-2.2.5./configure --bindir=/usr/sbin/ \ --sbindir=/usr/sbin/ \ --sysconfdir=/etc/ \ --libdir=/usr/lib64/ \ --mandir=/usr/share/man/