Requisiti

If you have the GD library (available at » http://www.libgd.org/) 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.

Nota: libgd-2.1.0 or higher is required. Alternatively, use the bundled GD library that ships with PHP.

Nota: The GD library requires zlib >= 1.2.0.4.

You may wish to enhance GD to handle more image formats.

Supported image formats
Image format Library to download Notes
gif    
avif    
jpeg » http://www.ijg.org/ When building the jpeg library (prior to building PHP) you must use the --enable-shared 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 » http://www.libpng.org/pub/png/libpng.html
xpm » http://www.ibiblio.org/pub/Linux/libs/X/!INDEX.html It's likely you have this library already available, if your system has an installed X-Environment.
webp    

You may wish to enhance GD to deal with different fonts. The » FreeType 2 library is supported.

add a note add a note

User Contributed Notes 1 note

up
0
munyivangea at yahoo dot com
10 years ago
To avoid issues with GD ensure you have the following set in your php.ini

output_buffering = Off
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR

Then restart apache.
To Top