From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.18
PHP version:      4.2.1
PHP Bug Type:     *Graphics related
Bug description:  ImageCreate() is not working properly in php 4.2.1.

This worked just fine in version 4.1.2. There is just an broken image on
the webpage.

Here is the code i'm using.

<?
Header ("Content-type: image/jpeg");
$im = ImageCreate(800,70) or die ("Cannot initialize GD library");
$white = ImageColorAllocate ($im, 255, 255, 255);
$blue = ImageColorAllocate ($im, 48, 100, 152);
ImageTTFText ($im, 42, 0, 0, 58, $blue,
"/usr/share/fonts/ttf/verdana.ttf", "$agitext");
ImageJpeg ($im, "", 95) or die ("Cannot create image");
$filepath ="./agi";
$filename = "agi.jpg";
ImageJpeg ($im, "$filepath/$filename", 95);
ImageDestroy ($im);
?>

-- 
Edit bug report at http://bugs.php.net/?id=17526&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17526&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17526&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17526&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17526&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17526&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17526&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17526&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17526&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17526&r=globals

Reply via email to