Hi,
What I want to be able to do is stream an image from one php script into another. Eg. <img src="getImage.php">
In getImage.php I have:
header('Content-Type: image/jpeg');
header('Content-Disposition: inline; filename=file.jpg');
$picturefilename = "image1.jpg";
$picture = imagecreatefromjpeg($picturefilename);
imagejpeg($picture,"",80);
But this only produces a broken image.
Any ideas?
Thanks in advance
What I want to be able to do is stream an image from one php script into another. Eg. <img src="getImage.php">
In getImage.php I have:
header('Content-Type: image/jpeg');
header('Content-Disposition: inline; filename=file.jpg');
$picturefilename = "image1.jpg";
$picture = imagecreatefromjpeg($picturefilename);
imagejpeg($picture,"",80);
But this only produces a broken image.
Any ideas?
Thanks in advance