RE: problem using imagejpeg function all

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx] 
Sent: November 21, 2006 11:40 PM
To: Tom
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  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
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux