Hi,
I am trying to run a script to copy one image from another and all I get is a black box.
The script is :
<?
$Height = 300;
$Width = 300;
$upload_name = "test.jpg";
$im = imagecreatefromjpeg($upload_name);
$im2 = ImageCreate($Width,$Height);
ImageCopy($im2,$im,0,0,0,0,$width,$height);
Header ("Content-Type: image/jpeg");
Imagejpeg($im2);
?>
It can be run at http://www.ranelagh.uklinux.net/wap/wbmpconvert/test.php3
Do anyone have an idea what the problem might be ?
Regards,
Andrew