GD Library of Image Functions

This section provides a quick introduction on GD Library for creating images and managing image files in BMP, GIF, PNG, JPEG formats.

What Is GD Module? - GD (Graphic Draw) Module, also called GD Extension or GD Library, allows you to create and manipulate image files in different formats, including GIF, PNG, JPEG, and more. Zip Module was introduced in PHP 4.3.

GD module is included in most PHP distribution packages. On some versions, you may need to enable it explicitly in the php.ini configuration file using one of the following settings:

extension=gd2
extension=gd2.so
extension=php_gd2.dll

GD library supports the following main features:

Examples of GD functions:

For more information, see GD module documentation at php.net/manual/en/book.image.php.

Table of Contents

 About This Book

 Introduction and Installation of PHP

 Managing PHP Engine and Modules on macOS

 Managing PHP Engine and Modules on CentOS

 cURL Module - Client for URL

 DOM Module - Parsing HTML Documents

GD Module - Manipulating Images and Pictures

GD Library of Image Functions

 GD Library - Draw Graphical Elements

 GD Library - Print 2 Pictures on 1 Page

 GD Library - Create Transparent Image

 Transparent Image Over Text Web Page

 GD Library - Pad Transparent Image

 MySQLi Module - Accessing MySQL Server

 OpenSSL Module - Cryptography and SSL/TLS Toolkit

 PCRE Module - Perl Compatible Regular Expressions

 SOAP Module - Creating and Calling Web Services

 SOAP Module - Server Functions and Examples

 Zip Module - Managing ZIP Archive Files

 References

 Full Version in PDF/EPUB