RE: [PHP] problem using imagejpeg function all
| From: | Tom | Date: | Wed, 22 Nov 2006 04:42:42 +0000 |
| Subject: | RE: [PHP] problem using imagejpeg function all | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245011@lists.php.net to get a copy of this message | ||
Can you show me what your gd dump looks like?
<?php
var_dump(gd_info());
?>
Is that way I got mine.
Also, what php version are you using? I'm using 5.1.6.
Thanks for the info.
Tom
-----Original Message-----
From: Robert Cummings [mailto:robert@interjinn.com]
Sent: November 21, 2006 11:40 PM
To: Tom
Cc: php-general@lists.php.net
Subject: Re: [PHP] problem using imagejpeg function all
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. |
`------------------------------------------------------------'
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.11/543 - Release Date: 20/11/2006
9:20 PM
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.11/543 - Release Date: 20/11/2006
9:20 PM