Image functionsImage
&reftitle.intro;
You can use the image functions in PHP to get the size of
JPEG, GIF,
PNG, SWF,
TIFF and JPEG2000 images.
&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.
Versions of GD older than gd-1.6
support gif format images, and do not support png, where versions
greater than gd-1.6 support png, not gif.
If you have PHP compiled with
you are able to work with information stored in headers of
JPEG and TIFF images. These
functions do not require the GD library.
&reftitle.install;
In order to read and write images in jpeg format, you will need to
obtain and install jpeg-6b (available at
&url.jpeg;), and then recompile
GD to make use of jpeg-6b. You will also have to
compile PHP with
.
To add support for Type 1 fonts, you can install t1lib (available
at &url.t1lib;), and then add
.
&reftitle.runtime;
&no.config;
&reftitle.resources;
&no.resource;
&reference.image.constants;
&reference.image.functions;