Date: 10/14/00
- Next message: James Moore: "[PHP-DOC] cvs: phpdoc /en/features images.xml"
- Previous message: James Moore: "[PHP-DOC] test"
- Next in thread: James Moore: "[PHP-DOC] cvs: phpdoc /en/features images.xml"
- Maybe reply: James Moore: "[PHP-DOC] cvs: phpdoc /en/features images.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 @@
<?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>
- Next message: James Moore: "[PHP-DOC] cvs: phpdoc /en/features images.xml"
- Previous message: James Moore: "[PHP-DOC] test"
- Next in thread: James Moore: "[PHP-DOC] cvs: phpdoc /en/features images.xml"
- Maybe reply: James Moore: "[PHP-DOC] cvs: phpdoc /en/features images.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

