Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alpha transparency on PNGs in IE 1

Status
Not open for further replies.
Dec 8, 2003
17,047
GB
Just a quick heads-up to anyone using the AlphaImageLoader filter in IE to get PNG transparency working in IE (I spent many hours at the weekend trying to find out why it wasn't working for me):

The PNG files need to be 32-bit.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks Dan, that's good to know!

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
I did a test at the weekend... 8-bits gave transparency only where the alpha was 100%, 24-bit gave no transparency at all (in either IE or Firefox, would you believe), and 32-bit gave perfect results in both (with the Alpha filter in IE)... so I guess they do have to be 32-bit.

Fireworks certainly let you export as 32-bit so maybe your graphics package is one option missing? [ponder]

Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hmmm, Photoshop is normally pretty thorough ;)

PNG8 files should work in IE but because there are only 256 "tones" in the transparency channel the transparency effect is often disappointing.

PNG24 format (I assume it's 24 bit by the name) have much smoother transparency due to the increased number of steps. It is also possible to create percentage opacity with them.

IE only supports 8 bit PNG files - it renders the 24 bit transparency channel as a blue(ish) mask.

Firefox (and others) support 24 bit PNG's perfectly. I just tested it and it works

Have a look

I'd be interested to know what it is you are doing that isn't working. Perhaps it's something to do with the AlphaImageLoader you mentioned. But FF should support 24bit PNG transparency out of the box.


Ahaaa.... Read this

It seems that there are 2 formats, 8 and 24 bit. But with the alpha channel, 24 bit becomes effectively 32 bit.
So a 32 bit PNG is a 24 bit one with an alpha channel!

Glad we cleared that up lol

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Earl & Thompson Marketing - Marketing Agency Services in Gloucestershire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top