Posted by SteadyEddie on 11/25/05 12:54
I am ahving trouble trying to get PHP to display a Jpeg Image. I ahve set
the contect type to image/jpeg at the top of the page. i have the gd2
modulde installed.
when the im is displayed it shows as a random jumble of letters and
characters instead of the image.
this is the code im using:
<?php
$im = imagecreatefromjpeg("folder/pictures/picture1.jpg");
imagejpeg($im,"", 75);
imagedestroy($im);
?>
Navigation:
[Reply to this message]
|