Page tree
Skip to end of metadata
Go to start of metadata

Overview

GD – Image Functions (GIF, JPG, PNG, etc)

Profile

Namegd
PHP Version5
Profile ValueCpanel::Easy::PHP5::GD
Reverse BooleanNo

Compatibility

This module has no known compatibility issues.

Notes

If you enable this option, --with-gd will be added to PHP's configuration options.

EasyApache will search the following paths for libgd.so:

  • /lib
  • /lib64
  • /usr/lib
  • /usr/lib64
  • /usr/local/lib
  • /usr/local/lib64

If libjpeg.so is found, --with-gd is added to PHP's configuration options.

EasyApache will also search for additional GD feature libraries.

JPEG support

EasyApache will search the following paths for libjpeg.so: 

  • /usr/lib
  • /usr/lib64
  • /usr/local/lib
  • /usr/local/lib64

If libjpeg.so is found, --with-jpeg-dir=detected path here is added to PHP's configuration options.

PNG support

EasyApache will search the following paths for libpng.so: 

  • /usr/lib
  • /usr/lib64
  • /usr/local/lib
  • /usr/local/lib64

If libpng.so is found, --with-png-dir=detected path here is added to PHP's configuration options.

XPM support

EasyApache will search the following paths for libXpm.so:

  • /usr/lib
  • /usr/lib64
  • /usr/local/lib
  • /usr/local/lib64
  • /usr/X11R6/lib
  • /usr/X11R6/lib64

If libXpm.so is found, --with-xpm-dir=detected_path_here is added to PHP's configuration options.

EasyApache will compile a simple test program that includes gd.h. If this test fails, GD will be disabled.

Requirements

OSVersionRPM/Package
CentOS/Red HatAllgd
CentOS/Red HatAlllibXpm
CentOS/Red HatAlllibXpm-devel
??libXpm-dev
??xorg-x11-dev
??xorg-x11-devel
??libpng-dev
CentOS/Red HatAlllibpng-devel
??libjpeg-dev
CentOS/Red HatAlllibjpeg-devel
CentOS/Red HatAlllibX11-devel

Vendor documentation

PHP versionDocumentation
5Docs