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 and GIF 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.
Two way installation
1. Source installation
yum install php-gd
yum install gd-devel
in order to enable gd library you may edit php.ini and uncomment
You may also have to correct the extension directory setting from:
extension_dir = “./”
extension_dir = “./extensions”
2. Native Installation
C. make install
verfiy it by making a file phpinfo.php
vi phpinfo.php and put
restart apache and verify if gd is enabled on the page.