Re: [GD-DEVEL] gd and animated GIFs
[email protected] ("Pierre Joye")
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Bill! On Feb 13, 2008 11:53 AM, Bill Frost <[email protected]> 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