Re: [GD-DEVEL] GDlib puts bug on tux in my win2k
[email protected] (Pierre)
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! On Jan 16, 2008 10:39 AM, oyster <[email protected]> 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