Transparent GIF rendering

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
dvlnblk
Forum Newbie
Posts: 6
Joined: Thu Jul 06, 2006 7:10 pm

Transparent GIF rendering

Post by dvlnblk »

Hey All, I am getting closer I think to figuring out how to do this. I want to be able to render a png to a browser, say a face (mine). I have done that here:

http://www.dead-line.com/victor/phpTest10.php

Then I want to render a PNG of a pair of glasses over my face. I have the glasses rendering here:

http://www.dead-line.com/victor/phpTest11.php

But when I try and put them together it does not work, I get this:


http://www.dead-line.com/victor/phpTest12.php


ALSO, that PNG of my face is in color if you look at it but when it renders it loses the color, any idea of why?

Thanks a lot in advance for your help. Dvl :?:
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

We're going to need to see code before we can help at all.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
dvlnblk
Forum Newbie
Posts: 6
Joined: Thu Jul 06, 2006 7:10 pm

Post by dvlnblk »

I have zipped up the files and put them here for you to look at: http://www.dead-line.com/victor/gif.zip
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Hmm, I have no idea. Maybe ~onion2k or ~feyd can help.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
dvlnblk
Forum Newbie
Posts: 6
Joined: Thu Jul 06, 2006 7:10 pm

Post by dvlnblk »

How do I get help from those two that you mentioned? And, thanks
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

dvlnblk wrote:How do I get help from those two that you mentioned?
You wait ;)
dvlnblk
Forum Newbie
Posts: 6
Joined: Thu Jul 06, 2006 7:10 pm

Post by dvlnblk »

LOL...Okay, I will do that.
Post Reply