You are here: Re: gd image problem « PHP Programming Language « IT news, forums, messages
Re: gd image problem

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация