ID:               24068
 Updated by:       [EMAIL PROTECTED]
 Reported By:      william at databyte dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Output Control
 Operating System: Win XP
 PHP Version:      4.3.2
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Gif creation cannot be done with dunbled libraries due to licensing
issue. At the moment gd library can only create jpeg, png, wbmp and xpm
files.


Previous Comments:
------------------------------------------------------------------------

[2003-06-06 15:38:32] william at databyte dot com

Use example of image function in 4.3.2 manual to display jpg image.
Success.
Change it to display gif image. No image display. php_gd2.dll is
included.
<?
    header("Content-type: image/gif");
    $string = $_GET['text'];
    $im     = imagecreatefromgif("COMMON/IMG/welcome.gif");
    $orange = imagecolorallocate($im, 220, 210, 60);
    $px     = (imagesx($im) - 7.5 * strlen($string)) / 2;
    imagestring($im, 3, $px, 9, $string, $orange);
    imagegif($im);
    imagedestroy($im);
?>
Following is the html source:
<table>
        <tr>
                <td><img src="testgif.php?text=welcome"></td>
        </tr>
</table>

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24068&edit=1

Reply via email to