dynamic image GD library

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
HappyTchoum
Forum Newbie
Posts: 8
Joined: Tue Dec 16, 2003 3:18 pm

dynamic image GD library

Post 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
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

i looked at your pages that you linked to and i saw nothing wrong???what am i missing????
HappyTchoum
Forum Newbie
Posts: 8
Joined: Tue Dec 16, 2003 3:18 pm

Post 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
Post Reply