From:             william at databyte dot com
Operating system: Win XP
PHP version:      4.3.2
PHP Bug Type:     Output Control
Bug description:  GIF image not displayed

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 bug report at http://bugs.php.net/?id=24068&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24068&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24068&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24068&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24068&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24068&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24068&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24068&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24068&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24068&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24068&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24068&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24068&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24068&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24068&r=gnused

Reply via email to