PPstats met gd 1.8.3 (uitleg)

Pagina: 1
Acties:

  • Infern0
  • Registratie: September 2000
  • Laatst online: 16-03 23:51

Infern0

Hou die ontzettende rust!!

Topicstarter
Hallo,

Na veel geklooi heb ik het voor mekaar gekregen om mooie grafiekjes te maken met gd1.8.3 dit zijn nu dus png files.
Ik had een hogere gd versie nodig voor een ander programma, dus ik ben gaan zoeken naar een oplossing.:?

Ik heb nu het perl script zo aangepast dat deze png files maakt mbv gnuplot >:) .
Als er interesse is zal ik hem hier posten.:z

(BTW dit is alleen voor linux)

http://www.bsdfreaks.nl Home site: http://rob.lensen.nu /me was RobL


  • FlipFlap
  • Registratie: Februari 2000
  • Laatst online: 17-05 08:47

FlipFlap

Tweakeroid sinds 28_01_2001

Kun je in je profiel je homepage ff wijzigen in http://pauper.cjb.net/
Dat klikt iets makkelijker. ;)

ff niets


  • Scraper
  • Registratie: April 2000
  • Laatst online: 18-05 15:05

Scraper

ErikJ

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

  • [eNeRGy]
  • Registratie: November 1999
  • Laatst online: 24-04-2025
Je kan ook 1.8.3 gewoon patchen zodat ie GIF kan spugen !

  • [eNeRGy]
  • Registratie: November 1999
  • Laatst online: 24-04-2025
Van http://www.php.net/manual
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.
Even disclaimer:
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).

  • Infern0
  • Registratie: September 2000
  • Laatst online: 16-03 23:51

Infern0

Hou die ontzettende rust!!

Topicstarter
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

http://www.bsdfreaks.nl Home site: http://rob.lensen.nu /me was RobL

Pagina: 1