Re: [PHP] problem using imagejpeg function all

2006-11-22 Thread Richard Lynch
On Tue, November 21, 2006 10:31 pm, Tom wrote: I’m trying to use the imagejpeg function call in a php script and I can’t quite seem to get it working properly. Can you clarify working properly into something a bit more concrete? Right now, we're left guessing from the most likely

[PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
Hello, I’m trying to use the imagejpeg function call in a php script and I can’t quite seem to get it working properly. Here is my gd dump. 'GD Version' = 'bundled (2.0.28 compatible)' (length=27) 'FreeType Support' = true 'FreeType Linkage' = 'with freetype' (length=13)

Re: [PHP] problem using imagejpeg function all

2006-11-21 Thread Robert Cummings
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

RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
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

RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Robert Cummings
On Tue, 2006-11-21 at 23:42 -0500, Tom wrote: 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. PHP 4.4.4 and PHP 5.2.0 both compiled from source. This is my PHP 5.2.0