note 35377 added to function.imagejpeg
| From: | php-general at lists dot php dot net | Date: | Fri, 29 Aug 2003 03:30:34 +0000 |
| Subject: | note 35377 added to function.imagejpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55272@lists.php.net to get a copy of this message | ||
When I use the following code:
<?php
header("Content-type: image/jpeg");
$im=@ImageCreate(320,200)
or print("Could not create image");
$bg_color=ImageColorAllocate($im,240,240,240);
$text_color=ImageColorAllocate($im,0,0,0);
ImageString($im,3,0,0,"Hello World!",$text_color);
Imagejpeg($im,"",100);
?>
The browser just contunues to load until it times out. If I add a file name the jpeg file is
created fine but I can't output directly to a browser. Any ideas?
----
Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35377
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35377&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35377&report=yes