Re: problem using imagejpeg function all
| From: | Robert Cummings | Date: | Wed, 22 Nov 2006 04:39:47 +0000 |
| Subject: | Re: problem using imagejpeg function all | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245010@lists.php.net to get a copy of this message | ||
On Tue, 2006-11-21 at 23:31 -0500, Tom wrote:
> <?php
> $image = imagecreate(200, 200);
> $colorRed = imagecolorallocate($image, 255, 0, 0);
> imagefill($image, 0, 0, $colorRed);
>
> //send image
> //header("Content-type: image/jpeg");
> imagejpeg($image);
>
> ?>
Works for me with the header line uncommented.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'