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

Posted by lukemack on 03/08/07 09:06

i decided to take a different tack, use a different class and save the
thumbnails before rendering so its now sorted. thanks anyway.


On 7 Mar, 14:26, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> wrote:
> lukemack wrote:
> > 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");
>
> Hmm,
>
> Well I don't know the package.
> A few things to try:
> 1) Rename the image to a name without a space in it, eg: Blue_hills.jpg
> 2) Overrule the Content-type to text/html to see if any errors are produced.
>
> Best of luck,
>
> Erwin Moller
>
>
>
> >> 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

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