Click to See Complete Forum and Search --> : PHP Image


lukedyson
07-20-2004, 10:25 AM
<?php
$imgname = "/home/simplesh/public_html/images/infocenter.jpeg";
imagecreatefromjpeg($imgname);
$image = imagecreate(350, 100);
imagejpeg($image);
?>

I am trying to include a jpg into an image.

I have this so far, what do i need to do,. to get this to work??

Luke :)

olaf
07-22-2004, 10:20 AM
Hallo,

check the manual about imagecopy or imagecopyresampled...

simpson97
08-04-2004, 02:02 AM
It looks like ou forget header - try this:
<?php
header = ("Content type: image/jpeg");
$imgname = "/home/simplesh/public_html/images/infocenter.jpeg";
imagecreatefromjpeg($imgname);
$image = imagecreate(350, 100);
imagejpeg($image);
?>