dynamic image GD library
Posted: Tue Dec 16, 2003 3:18 pm
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
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