&reftitle.setup;
&reftitle.required;
If you have the GD library (available at &url.gd;) you will also be able to create
and manipulate images.
The format of images you are able to manipulate depend on the
version of GD you install, and any other libraries
GD might need to access those image formats.
GIF support is available as of gd-2.0.28.
libgd-2.0.4 or higher is required.
As of PHP 5.5 libgd-2.1.0 or higher is required. Alternatively, use
the bundled GD library that ships with PHP.
You may wish to enhance GD to handle more image formats.
Supported image formatsImage formatLibrary to downloadNotesgif
Only supported in GD versions newer than
gd-2.0.28. Write support is available as of
PHP 5.0.1.
jpeg&url.jpeg;
When building the jpeg library (prior to building PHP) you
must use the
option in the configure step. If you do not, you will receive
an error saying libjpeg.(a|so) not found
when you get to the configure step of building PHP.
png&url.libpng;xpm&url.libxpm;
It's likely you have this library already available, if your system
has an installed X-Environment.
You may wish to enhance GD to deal with different fonts. The following
font libraries are supported:
Supported font librariesFont libraryDownloadNotesFreeType 1.x&url.freetype;Support for FreeType 1.x has been removed as of PHP 5.3.0.FreeType 2&url.freetype;T1lib&url.t1lib;)
Support for Postscript Type 1 fonts (Removed as of PHP 7.0.0).
&reference.image.configure;
&reference.image.ini;
&reftitle.resources;
This extension defines the following resource types:
List of resource types in GDNameDescriptionNotesgdImage resource, used by functions like imagecreatefrompnggd fontFont resource internally created by imageloadfontgd PS fontPostScript Type 1 font resource, returned by imagepsloadfont
Removed as of PHP 7.0.0.
gd PS encodingPostScript Type 1 encoding resource, returned by imagepsencodefont
Removed as of PHP 7.0.0.