Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

New vB Tag/Code - PNG Alpha transparency

12 replies · 3,029 views · Started 23 March 2002

For those of you who know something about alpha transparency and PNG images, here's the short of it: (i'm putting spaces in here so I can show you the code. take them out).

[ PNGA=XX ]http://url.to/image.png[ /PNGA ]

Where XX should be replaced with the width of your image in pixels. Specifying different widths will not stretch your image, only clip it. This will insert your PNG image so that it will be correctly rendered by Internet Explorer with alpha transparency. So now you can have images with no jaggies. (too bad we don't have this for avatars)

For those who don't understand alpha transparency.... I'm trying to find a good online tutorial... anyone wanna step in and explain how to create images that use alpha transparency?

almost forgot the sample

[pnga=320]http://gemini.tntech.edu/~eek8908/gradient.png[/pnga]

Notice how it fades to the board background color... no matter which style set you have active.

All fine and good for the IE users on the board.
Doesn't show up at all in any other browser, in any OS.
So people who use Opera or whatever or use Linux are left out of the benifits of this PNG alpha blending thingy.
And soon AOL users won't see it either.

Originally posted by Menokh
All fine and good for the IE users on the board.

Resistance is futile. You will be assimilated.

Tell me, Menokh, does the following image blend to the board BG color in your web browser?

User posted image

If not, then you couldn't see it as is intended anyway. If it does, then you can use the alpha transparency without using the custom tag... you can just use the standard [img] tag.

Either way... you have nothing to whine about. Either you've had this capacity all along but didn't know it, or the people who made your browser didn't bother to implement alpha transparency (which is part of the PNG standard).

No it doesn't.
Oh well not that big of a loss.
The thing is the other image doesn't even show up.

Doesn't work here and I use IE 5 and am not upgrading, EVER. microsoft updates are evil and buggy as hell. Once I upgraded MSN messenger, made me have to reformat and start over cause it was fucked up THAT bad.

Originally posted by fmehmobile
In opera 6 the 2nd one worked but not the 1st. Weird.

Funny it won't work in my Opera, but the second works in Mozilla. The first doesn;t even show up in in IE when I just tryed it, and the second wasn't working in IE either.
Oh well. The second works in Mozilla.

hmm... I never use PNG images anyways... but if the code were to be modified to work in all browsers that could come in handy. Since the second image shows the transperancy under Mozzilla(but not IE), perhaps it could be done so IE users get the code but others don't. Who knows.

Originally posted by Menokh
So people who use Opera or whatever or use Linux are left out of the benifits of this PNG alpha blending thingy.

Actually, Opera 6 Beta supports Alpha PNGs. All you Windoze users, either use Opera 6 or Netscape 6 if you want to see PNGs to their full power. IE is not an option. :kawaii:

I've heard bad things about Netscape 6.x being buggy. Right now I use 4.7 and it works fine, except for the transparency.

Originally posted by slothman
I've heard bad things about Netscape 6.x being buggy. Right now I use 4.7 and it works fine, except for the transparency.

It leaks memory. You aught to either use 6.x or no Netscape at all, because 4.7 does not support most CSS elements.