http://www.bsdfreaks.nl Home site: http://rob.lensen.nu /me was RobL
rlensen, kun je die even naar me mailen dat scriptje, dan zorg ik ervoor dat hij op www.dutchpowercows.org verschijnt. Mailto:scraper@bigfoot.com
Je kan ook 1.8.3 gewoon patchen zodat ie GIF kan spugen !
Van http://www.php.net/manual
Even disclaimer:adam@elysium.ltd.uk
09-Oct-2000 11:53
I added GIF support back into the latest version of GD (1.8.3). The patch is portable, and so should work on all future versions. It's fully compatibile with the 1.3 version (from where much of the source was converted), and has all been changed to use the IO Context stuff.
The diff generated patch can be found at
http://www.webofsin.com/gd-1.8.3-gif.patch
Apply it over the source from 1.8.3, and compile.
dafokka@gmx.net
09-Jan-2001 08:05
The author of libGD didn't omit GIF support without a reason. Since UniSys patented the compression algorithm you're not allowed to use it unless you pay UniSys. I know that a lot of sites still use .GIF, but the author probably wanted to prevent a legal hassle. PNG is superior to .GIF anyway, the only drawback is that it isn't as widely supported as GIF. But JPEG is, and that does work with libGD (although it's worse at displaying icons and the stuff you'll probably want to generate with libGD).
Het bestand ppstats-rc5-7.1.pl moet aangepast worden.
zoek dit gedeelte en zorg dat het er zo uit komt dit zien.
---------------------------
print GNUPLOTCONFIG "set key top left\n",
"set timefmt '%Y/%m/%d'\n",
"set xdata time\n",
"set xrange ['$xmin':'$xmax'] noreverse nowriteback\n",
"set format x '%m/%d/%Y'\n",
"set xtics rotate\n",
"set ylabel 'Rate (kkeys/sec)'\n",
"set yrange [0:$range] noreverse nowriteback\n",
"set grid\n",
"set bmargin 6\n",
"set terminal png medium \n",
"set output '$path/" . $userprefs{"gnuplotoutput"} . "'\n";
---------------------------------------
Als laatste moet de ppstats-rc5.ini aangepast worden
#--- Format Options ----------------------------------------------------------
ChartWidth = 640 # GIF image width. ChartHeight = 480 # GIF image height.
-------------
dit omdat anders de grafiek er krom uit komt te zien.
De nu verkregen grafiek is niet zo mooi meer als die met gif, maar het werkt goed. Ik ga nog kijken of de png grafiek mooier te maken is.
Je kan het resultaat zien op http://212.120.117.225/rc5/index.html
zoek dit gedeelte en zorg dat het er zo uit komt dit zien.
---------------------------
print GNUPLOTCONFIG "set key top left\n",
"set timefmt '%Y/%m/%d'\n",
"set xdata time\n",
"set xrange ['$xmin':'$xmax'] noreverse nowriteback\n",
"set format x '%m/%d/%Y'\n",
"set xtics rotate\n",
"set ylabel 'Rate (kkeys/sec)'\n",
"set yrange [0:$range] noreverse nowriteback\n",
"set grid\n",
"set bmargin 6\n",
"set terminal png medium \n",
"set output '$path/" . $userprefs{"gnuplotoutput"} . "'\n";
---------------------------------------
Als laatste moet de ppstats-rc5.ini aangepast worden
#--- Format Options ----------------------------------------------------------
ChartWidth = 640 # GIF image width. ChartHeight = 480 # GIF image height.
-------------
dit omdat anders de grafiek er krom uit komt te zien.
De nu verkregen grafiek is niet zo mooi meer als die met gif, maar het werkt goed. Ik ga nog kijken of de png grafiek mooier te maken is.
Je kan het resultaat zien op http://212.120.117.225/rc5/index.html
http://www.bsdfreaks.nl Home site: http://rob.lensen.nu /me was RobL
Pagina: 1