Re: [GD-DEVEL] GDlib puts bug on tux in my win2k

From: Date: Wed, 16 Jan 2008 10:10:59 +0000
Subject: Re: [GD-DEVEL] GDlib puts bug on tux in my win2k
References: 1  Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-318@lists.php.net to get a copy of this message
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

« previous php.gd.devel (#318) next »