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)
'T1Lib Support' => false
'GIF Read Support' => true
'GIF Create Support' => true
'JPG Support' => true
'PNG Support' => true
'WBMP Support' => true
'XPM Support' => false
'XBM Support' => true
'JIS-mapped Japanese Font Support' => false
Would I need to have T1Lib support in order for this it work?
As a quick example, here is some code I’ve been playing around with that I
found somewhere.
<?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);
?>
Should make a red square.
Any help would be greatly appreciated. Thank you.
Tom
--
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