What is use of GD library in PHP? GD library is an open-source code library used for creating images dynamically in PHP. It is generally used to generate charts, graphics, thumbnails on the fly. 22-August 9:23 PM 511 Views