Posted by Stefan Rybacki on 11/25/05 14:35
SteadyEddie wrote:
>
> 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.
Where did you set the content type and how?
>
> 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
The content type setting is missing here:
header("content-type: image/jpeg");
> $im = imagecreatefromjpeg("folder/pictures/picture1.jpg");
> imagejpeg($im,"", 75);
> imagedestroy($im);
> ?>
>
Regards
Stefan
>
Navigation:
[Reply to this message]
|