Re: [GD-DEVEL] gd and animated GIFs

From: Date: Wed, 13 Feb 2008 11:57:35 +0000
Subject: Re: [GD-DEVEL] gd and animated GIFs
References: 1 2  Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-364@lists.php.net to get a copy of this message
Hi Bill! On Feb 13, 2008 11:53 AM, Bill Frost <billfrost@bigpond.com> wrote: > Hi all, > > Just playing around with gd and an animated GIF. With the current Windows > build (2.0.34 binaries) and the DLL, I can build and run the example > animation at > > http://cvs.php.net/viewvc.cgi/gd/libgd/examples/gif.c?view=markup > but I only > see a blank, white image of 100, 100. No frames! > > The culprit appears to be this line: > > <snip> > gdImageFilledRectangle(im, rand() % 100, rand() % 100, rand() % 100, rand() > % 100, black); > <snip> > > If I change it to: > > gdImageRectangle(im, rand() % 100, rand() % 100, rand() % 100, rand() % 100, > black); > > All runs as it should and a random coloured rectangle with a white interior > is drawn. That makes little sense to me, it works well here on windows and linux. Can you try using a more recent version? CVS or 2.0.35 (or 2.0.36RC1)? > For what it's worth, I replaced the program with a quick, tacky one that > slides, expands / contracts or bounces most of the gd objects in a 120, 120 > pixel animation. Please check it and possibly replace the demonstration one > with this one if you think it is worth it. Looks funnier! I will replace it as soon as possible, thanks! By the way, have you considered the CVS account request? Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org

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