cvs: phpdoc /en/features images.xml

From: Date: Sat, 14 Oct 2000 13:08:08 +0000
Subject: cvs: phpdoc /en/features images.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969332480@lists.php.net to get a copy of this message
jmoore Sat Oct 14 06:08:08 2000 EDT Modified files: /phpdoc/en/features images.xml Log: Changing example to Png's and adding note about lack of Gif support in GD since version 1.6 Index: phpdoc/en/features/images.xml diff -u phpdoc/en/features/images.xml:1.3 phpdoc/en/features/images.xml:1.4 --- phpdoc/en/features/images.xml:1.3 Sat Aug 12 08:55:14 2000 +++ phpdoc/en/features/images.xml Sat Oct 14 06:08:07 2000 @@ -8,7 +8,8 @@ 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. + on which image formats you want to work with. GD stopped supporting + Gif images in version 1.6. </simpara> <para> @@ -18,11 +19,11 @@ &lt;?php Header("Content-type: image/gif"); $string=implode($argv," "); - $im = imagecreatefromgif("images/button1.gif"); + $im = imageCreateFromPng("images/button1.png"); $orange = ImageColorAllocate($im, 220, 210, 60); $px = (imagesx($im)-7.5*strlen($string))/2; ImageString($im,3,$px,9,$string,$orange); - ImageGif($im); + ImagePng($im); ImageDestroy($im); ?> </programlisting>

« previous php.doc (#969332480) next »