Re: GD::* modules
On Thu, 17 Oct 2002, the hatter wrote: And if it's not critical to use GD specifically, have a look at the alternatives. such as image magick. I'd reccomend Imager for most simple graphics stuff now, it handles more colours and installs easier than either PerlMagick or GD. Unfortunately it doesn't have the huge variety of extensions that GD has for charts and stuff but I am working on Pie and Radial charts possibly even some 3d bar and other charts later. regards, A. -- Aaron J Trevena - Perl Hacker, Kung Fu Geek, Internet Consultant AutoDia --- Automatic UML and HTML Specifications from Perl, C++ and Any Datasource with a Handler. http://droogs.org/autodia
Re: GD::* modules
On Thu, Oct 17, 2002 at 02:26:10PM +0100, [EMAIL PROTECTED] wrote: I had a nagging feeling this was going to be the biggest obstacle. I've tried before (admittedly not very persistently) and failed, but I suppose I'll have to try again. I had no problems at all getting GD up and running on Debian Linux - for what it's worth... Roger
Re: GD::* modules
On Thu, 17 Oct 2002, James Campbell wrote: I haven't used them before, and I'm wondering how easy they are to use. Anyone have any experience with them? Should I count on them being fairly straightforward, or is use of them more difficult to get right than it might seem? You will need to install libpng, zlib and the GD graphics lib before installing GD.pm And if it's not critical to use GD specifically, have a look at the alternatives. such as image magick. It also needs the appropriate graphics libs and stuff installing though, but that's just the nature of these things, you may have more luck getting one to work than the other though. Personally, I went off GD around the time it removed gif support, and hordes of customers needed it, so it was a hassle to get appropriate versions of GD, php, apache and openssl that would all happily compile against each other. the hatter
Re: GD::* modules
On Thu, Oct 17, 2002 at 01:00:16PM +0100, [EMAIL PROTECTED] wrote: I'm writing a quote for a project that might involve use of GD::Text (for auto-generation of page titles and headings) and GD::Graph (for generating, um, graphs). I've used GD::Graph quite a bit - it's all pretty easy, though you may need to fiddle a bit (as I did, to get logarithmic graphs). Not tried GD::Text. Roger
Re: GD::* modules
On Thu, 17 Oct 2002 [EMAIL PROTECTED] wrote: I'm writing a quote for a project that might involve use of GD::Text (for auto-generation of page titles and headings) and GD::Graph (for generating, um, graphs). GD::Text will probably fail tests. I've emailed the author about this and we're at a loss what to do. Don't worry about it, it seems to work fine. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgetent Term'Cap{};print$t-Tputs(cl);for$w(split/ +/ ){for(0..30){$|=print$t-Tgoto(cm,$_,$y). $w;select$k,$k,$k,.03}$y+=2}
Re: GD::* modules
On 2002-10-17 13:00:16, [EMAIL PROTECTED] said: I haven't used them before, and I'm wondering how easy they are to use. Anyone have any experience with them? Should I count on them being fairly straightforward, or is use of them more difficult to get right than it might seem? Yes, they're fine. They're _wrappers_ around GD, so you'll need to install GD on the web server that you're running the script from. I suppose that might be an issue in some cases. GD::Graph just takes a two-dimensional array and plots it nicely. Something like: (untested) my @data; $data[0] = ([Segment 1,Segment 2]); $data[1] = ([20,80]); my $graph = GD::Graph::pie-new(400, 300); $graph-set( title = 'Title here.' ); $graph-set( dclrs = [ qw(cyan lorange) ] ); my $gd = $graph-plot(\@data); binmode; print $gd-png; - Chris. -- $a=printf.net; Chris Ball | chris@void.$a | www.$a | finger: chris@$a That's just kitten-eating wrong. - Richard Henderson, on linux-kernel.
Re: GD::* modules
I haven't used them before, and I'm wondering how easy they are to use. Anyone have any experience with them? Should I count on them being fairly straightforward, or is use of them more difficult to get right than it might seem? You will need to install libpng, zlib and the GD graphics lib before installing GD.pm I had real bother getting this to work on RedHat 7.2 and 7.3 but it did work OK on my Windows box (ActivePerl with cygwin). The problems I had a most likely down to my inexperience but I can faithfully say that this caused me more hassle than *any* other module I have installed. However as everyone else has stated, once it is installed using it is a sinch! Good luck James =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= James Campbell Tel:+44-(0)20-7848-5111 Email: [EMAIL PROTECTED] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- 'Where shall I begin, please your Majesty?' He asked 'Begin at the beggining,' the King said gravely, 'and go on till you come to the end: then stop.' Lewis Carroll, Alice's Adventures in Wonderland.