|
Posted by lukemack on 03/07/07 14:19
hi - yes, the header is set by the the class:
On 7 Mar, 14:16, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> wrote:
> 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?1 d: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]
|