Discussion Locked

command-line web-compatible graph / imag

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am looking for a free, command-line utility that creates images using data from standard input or from a file. I want to create a graph, including labels, from data generated by another script and include that graph in a webpage. If there's a tool to do this that comes standard with *nix, let me know what it is, please. If there isn't point me in the right direction. (I already looked into graph, but it won't do labels, that I can see.)

4 replies

by m42

If you want to publish the resulting graph in a Web page i suggest using PHP3 to do the job... it has a lot of functions for importing and parsing files and for generating "on-the-fly" images.

by jasonu

I was specifically looking for a command-line utility because I wasn't allowed to install PHP on my client's Mac OS X Server.

by smn

depending on the input data and the exact graph you want to produce, gnuplot ( http://www.gnuplot.org/ ) may do - perhaps only part - of the job. for additional tweaking, the ImageMagick collection of command-line utilities ( http://www.wizards.dupont.com/cristy/ImageMagick.html ) is a very powerful set of tools. there is also an interface to Perl ( Image::Magick ), so you can do all sorts of automated processing.
alternatively, the GD module (for this and other graphics stuff for Perl, see http://search.cpan.org/Catalog/Graphics/ ) provides GIF image editing in Perl.

by jasonu

It sounds like this info would be useful. Alas, I'm no longer on contract with the client needing these things, so I won't be able to give your advice a good "run for its money."

This discussion is closed to new replies.