Re: [GD-DEVEL] GDlib puts bug on tux in my win2k
| From: | oyster | Date: | Wed, 16 Jan 2008 10:50:55 +0000 |
| Subject: | Re: [GD-DEVEL] GDlib puts bug on tux in my win2k | ||
| References: | 1 2 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-319@lists.php.net to get a copy of this message | ||
thanx, gdImageCreateTrueColor works right
but why gdImageCreate fails? Why does gdImageCreate turn the other
colors in palette into grey( we can save a truecolor pic to a pic in
256-color-pallete format, but it is still colorful, and is no grey)?
And as for that foot of tux, the 'red' is actually not has the same
RGB, so how does gd mappthe range of 'red' colors to an unique one?
I cannot undersatnd the above questions and find no docs on them too.
If that is a feature of gd, I think it is better to mention it in the
document; else, I think it is a bug need to be fixed.
thank again
2008/1/16, Pierre <pierre.php@gmail.com>:
> Hi!
>
> On Jan 16, 2008 10:39 AM, oyster <lepto.python@gmail.com> wrote:
> > hi, all.
> > I am using GD 2.0.34 with mingw in my win2k. I compiled the src to get
> > DLL and lib file.
> > I met a problem while running the second example (gd-eg2.c) on
> > http://linuxgazette.net/issue91/shuveb.html. The result is
> > expected to
> > be a resized tux as you can see. But what I get is a tux in
> > white-black with only one foot is
> > red(http://pyguiviactypes.googlepages.com/bug_tuxout.png). That is so
> > strange.
> > Is this a bug in GD or the example source? And how to fix it? Thanx
>
> Given that the input and output image are JPEG, try by replacing
> gdImageCreate by gdImageCreateTrueColor. It should work as you expect.
> Let us know if you solve your problem :)
>
> Cheers,
> --
> Pierre
> http://blog.thepimp.net |
> http://www.libgd.org
>