#22185 [NEW]: problem with creating images
| From: | michal dot mikes at ecomma dot cz | Date: | Wed, 12 Feb 2003 12:37:21 +0000 |
| Subject: | #22185 [NEW]: problem with creating images | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-32881@lists.php.net to get a copy of this message | ||
From: michal.mikes@ecomma.cz
Operating system: WINNT4.0
PHP version: 4.3.0
PHP Bug Type: *Graphics related
Bug description: problem with creating images
I have a simple script that create image. Everything works right since I
put "session_start()" into the script. Then result isn't short PNG image,
but large BMP image.
MM
<?
header("Content-Type:image/png");
//session_start();
$im = imagecreate (50, 250);
$bgcolor = ImageColorAllocate ($im, 0x77, 0x77, 0x77);
$textcolor = ImageColorAllocate ($im, 0x00, 0x00, 0x00);
$font = "./arial";
ImageTTFText ($im, 35, 90, 40, 230, $textcolor, $font, "text");
Imagepng ($im);
ImageDestroy ($im);
?>
--
Edit bug report at http://bugs.php.net/?id=22185&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22185&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22185&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22185&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22185&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22185&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22185&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22185&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22185&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22185&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22185&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22185&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22185&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22185&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22185&r=gnused