Re: Using GD on the fly to add a graph to a web page

2009-02-08 Thread bacoms
Mike, I replied a couple of days ago to say I'd solved the problem but it has not appeared, despite being told that the post was successful. Assuming that it's lost, here's a brief summary; Delved into LWP as you recommended and strung together some code that used the 'head' and 'getstore'

Re: Using GD on the fly to add a graph to a web page

2009-02-05 Thread bacoms
Mike, First of all many thanks for the detailed reply. I thought I understood what you were saying but, having changed my code accordingly, I'm not so sure. If I understand you right, to embed a graph on my HTML page I need to create it outside the HTML with Content-type: image/png\n\n. This is

Re: Using GD on the fly to add a graph to a web page

2009-02-05 Thread Mike Williams
On Wed, Feb 4, 2009 at 6:11 PM, bacoms googlebr...@balfour.me.uk wrote: Mike, First of all many thanks for the detailed reply. I thought I understood what you were saying but, having changed my code accordingly, I'm not so sure. You are welcome. It looks like you understood things pretty

Using GD on the fly to add a graph to a web page

2009-02-03 Thread bacoms
I've got a web page that includes a graph. I achieve this with code that looks like: print Content-type: text/html\n\n; etc etc my($myImage) = $myChart-plot(\...@data) or die $myChart-error; open(IMAGE, Images/zzzgraph.png) or

Re: Using GD on the fly to add a graph to a web page

2009-02-03 Thread Mike Williams
On Mon, Feb 2, 2009 at 8:26 AM, bacoms googlebr...@balfour.me.uk wrote: Is it possible to eliminate the need to first write the image to disk? Yes, it is possible and desirable. Writing the images to disk creates a lot of complications. You have to generate some random temporary name to avoid

Re: Using GD on the fly to add a graph to a web page

2009-02-03 Thread Sean Davis
On Mon, Feb 2, 2009 at 8:26 AM, bacoms googlebr...@balfour.me.uk wrote: I've got a web page that includes a graph. I achieve this with code that looks like: print Content-type: text/html\n\n; etc etc my($myImage) =