diff --git a/reference/image/reference.xml b/reference/image/reference.xml index 3225b5a6ae..4921fcf87b 100644 --- a/reference/image/reference.xml +++ b/reference/image/reference.xml @@ -1,12 +1,21 @@ - + Image functions Image
- &reftitle.intro; + &reftitle.intro; + + PHP is not limited to creating just HTML output. It can also be + used to create and manipulate image files in a variety of different + image formats, including gif, png, jpg, wbmp, and xpm. Even more + convenient, PHP can output image streams directly to a browser. You + will need to compile PHP with the GD library of image functions for + this to work. GD and PHP may also require other libraries, depending + on which image formats you want to work with. + You can use the image functions in PHP to get the size of JPEG, GIF, @@ -87,6 +96,36 @@ &reference.image.constants; +
+ &reftitle.examples; + + + PNG creation with PHP + + +]]> + + + This example would be called from a page with a tag like: <img + src="button.php?text">. The above button.php script + then takes this "text" string and overlays it on top of a + base image which in this case is "images/button1.png" + and outputs the resulting image. This is a very convenient way to + avoid having to draw new button images every time you want to + change the text of a button. With this method they are + dynamically generated. + +
&reference.image.functions;