RRDtool currently ships with an ancient (about 1.5 years old) version of gd, apparently in order to continue to support GIFs (this code was removed in gd 1.6). Many enhancements and bugfixes have been made in gd since that time, but rrdtool has failed to benefit. Is there any reason that rrdtool should not be adapted to use the new version? The loss of GIF support is not a problem in many environments. Indeed, I have been compiling rrdtool against libgd 1.8.4 for the Debian rrdtool package since its inception (patch attached...basically uses PNG by default and disables GIF creation).
If GIF support is truly an issue, conditional code could be included to support GIF if it is available in the version of libgd being used, and otherwise support only PNG (or more; the latest libgd also supports JPEG and WBMP). Note that the attached patch makes no attempt to do the right thing if the caller asks for a GIF. The switch statements that have been modified do not have a default: clause, so unknown values aren't checked for either. This should be fixed. -- - mdz -- Attached file removed by Listar and put at URL below -- -- Type: text/plain -- Size: 1k (1942 bytes) -- URL : http://www.ee.ethz.ch/~slist/pantomime/02-rrdtool-gd1.8.4.patch -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-developers WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
