[PHP] Re: GD - dynamic PNG generation

2003-03-27 Thread Petter Aas
Conor McTernan wrote: Coding wise, I currently read the text in from a file, then put the text into an array, each line being a seperate entry in the array. I then create a PNG image approx 490*1848(i change the image size depending on the amount of text). I dont do anything really strange in my im

Re: [PHP] Re: GD - dynamic PNG generation

2002-02-26 Thread Conor McTernan
I managed to fix my problem, it seems that it was taking so long because of the consturction of a for loop of mine. I was calling the ImagePNG function too early, menaing it seemed to take forever to execute. it's now running at a fraction of it's original time. Conor On Mon, Feb 25, 2002 at

Re: [PHP] Re: GD - dynamic PNG generation

2002-02-25 Thread Conor McTernan
hmm, sounds like a good idea, i'll give it a try. it seems too, that if i dont break up my text, i.e. print all of it in one long line, it runs a lot faster i'm running this under Win2k, i got a PIII i dunno how many mhz(it's a college PC, and everything is locked down on me) but i'd guess at

[PHP] Re: GD - dynamic PNG generation

2002-02-25 Thread Michael Kimsal
Holy cow that's a big graphic. 20 seconds does sound a tad long, but might not be depending on the server and memory - what are the specs? What might possibly speed it up a bit is to create multiple small versions first (20 one line graphics, for example) and build them all together at the en