Page 1 of 1

dynamic image GD library

Posted: Tue Dec 16, 2003 3:18 pm
by HappyTchoum
Hi,

I have a little problem with my image.

I think that my problem is due to some limitation from the GD library. I think that my image is getting to big and I get weird colors problem in my script.

Here is three page presenting my problem:

The whole image with the problem:
http://members.playoffpool.levillage.org/test.php

The image presenting only the first round (no problem):
http://members.playoffpool.levillage.org/test2.php

The image presenting only the second round (no problem):
http://members.playoffpool.levillage.org/test3.php


I don't know why the colors are getting weird in the second round after the firstRound() function has been called. I though it would be my $score1 and $score2 that were not reset but it didn't make sense since it is in functions.

To solve the problem, I though that I could createfrompng("round1.php");
that would contain only the first part then apply my second part.

Another way that I though but didn't try yet (school keeps me so busy right now) is to create another image into the same script and merge them together. This way would create two buffers since I suspect the buffer to be filled. Might be wrong because I don't know much programmation.

Anyway enough talking

Thank You

HappyTchoum

P.S.: To see my script http://members.playoffpool.levillage.org/test.txt

Posted: Tue Dec 16, 2003 3:40 pm
by dull1554
i looked at your pages that you linked to and i saw nothing wrong???what am i missing????

Posted: Tue Dec 16, 2003 5:11 pm
by HappyTchoum
Hi

the colors in the second column are blue (might be purple I'm colorblind) and they are suppose to appear as I showed in part in the third link:

http://members.playoffpool.levillage.org/test3.php

In this page the score is shown and everything is fine but as soon that I romve the comment (//) beside the function for the first round, the colors doesn't work as it should

Thank You

HappyTchoum