|
Posted by Erwin Moller on 03/07/07 14:16
lukemack wrote:
> hi,
>
> i'm using the image thumbnailer class from phpclasses.org but getting
> raw text output instead of my image:
>
> ?PNG ??? IHDR??????????'???? PLTE??????????^??????IDAT8??1 ?0
> E???BN??U??<??S?)+??4???
>
$Bz??7?????????NSL[?{?bG??L??q0??????i????Q?g?#Y?"?L?1d:p???>??A8"@4??"??'T???M[|
> ?%?p\8&??;?rJL??Qq?t? s?sNj9??;?.? ??????p?I?n?^?W8?$?-
> ?????IEND?B`?
>
> i think this is actually an error image generated by the class as it
> seems to be a png and not a jpeg (which is what i am inputting)
>
> i am doing:
>
> $tn_image = new Thumbnail("/".$_GET['imgfile'], 0, 0, 25);
> $tn_image->show();
>
> the .$_GET['imgfile'] contains:
>
> img/uploaded/Blue hills.jpg
>
> can anyone help?
>
> many thanks,
>
> lukemack.
Hi Luke
Did you set the right header?
eg:
header("Content-type: image/png");
Regards,
Erwin Moller
[Back to original message]
|