View Full Version : Transparent Background Problem [Answered]
gjac1
12-09-2009, 12:58 PM
It seems that anything that is pure black (RGB 0,0,0) in your original adoptable image gets made transparent along with the background when the siggy image is made.
Is there anyway to stop this from happening ??
Here is what i mean :
Image before siggy.php makes a transparent background
http://pokealts.kilu.de/images/shop3.gif
And this is what happens after siggy.php makes the background transparent
http://www.pokealts.kilu.de/siggy.php?id=75 (http://www.pokealts.kilu.de/levelup.php?id=75)
Thanks :)
BMR777
12-09-2009, 03:24 PM
I'm not quite sure as to why this happens. Sometimes the signature generator just does weird things. I'll have to see if anything can be done.
gjac1
12-09-2009, 03:47 PM
ok thank you BMR777 :) , let me know what you come up with..
The only thing i can find is this, but i am not sure how to implement it into the siggy.php
http://us3.php.net/manual/en/function.imagecolortransparent.php
Seapyramid
12-09-2009, 09:44 PM
It is because the generator makes a black background & then makes black transparent. Since it is a combined layer effect, any black in your image therefore becomes transparent. They is no way around this. Black is the default background color & it can be changed to another & then that color made transparent. However, you change the background to red, make red transparent & you will have any red in your image disappear.
Basically the only way to do it is to forgo any one true color in any image & that of course would limit you.
What I have done with the gd images is using them as an 'earned' type award.. made them nontransparent, gave it an actual background image & it takkes certain things to earn....
example
without honors http://www.mysticgrove.net/grove/picuploads/gif/039725a536f7afee18a0b528ebace6df.gif with honors http://mysticgrove.net/grove/templates/valor/19.png
gjac1
12-10-2009, 04:35 AM
Thanks for the explanation Sea :)
I think what i will try is loading the gif image into paint (which default loads with the black background) and then get rid of all the black myself, replacing it with white, then i can see what it removes and manually add a different shade of black to the image so it is not removed by siggy.php .
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.