PNG transparancy for IE Plugin

Creating and modifying plugins.
Post Reply
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

PNG transparancy for IE Plugin

Post by Andyman77 »

Hiya,
As we know, IE 6 which will be around for a while yet doesn't understand png transparancy. I not really a coder but I'm sure that the code can be added via a plugin or a HTML nugget.
Here's a website I have found that provides all the code you need to enable png transparancy in IE.

PNG transparancy isn't a problem with Firefox or Opera or infact any more uptodate browser.

http://homepage.ntlworld.com/bobosola/index.htm
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

Hi Andyman77,

very great information and thanks for it!

But I think there's no need for a plugin, because you can put this pngfix.js into an html-head-nugget. This should work then.
The only thing which is needed in *every* img-tag, are the width and height values. I think, that they are often missed but I've not checked that...

I'll think about a little "serendipity_event_pngfix" plugin. This should also be no problem.
Alexander Mieland, dma147
http://blog.linux-stats.org
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

yep, tis the width and hight requirement, so it could mean plowing through all your PNG files and poping that info in.

Look forward to seeing the plugin 8)
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

@Andyman77: I'm just looking into the browsercompatibility-plugin. There's already such a png-transparency-fix implemented.
So you should try this first.
Alexander Mieland, dma147
http://blog.linux-stats.org
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

I am using that plugin, but it doesn't appear to make the png transpancy work for IE.

Check my site, the firefox image is a PNG with transparacy on the alpha layer. In Firefox and opera you see the image as I want you to see, in IE, you see a dull box around the edge.
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

Sorry, I have no windoze to test that...
Alexander Mieland, dma147
http://blog.linux-stats.org
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

humm,
Looks as if it's working now with a windoze system ... I will have to check on how I did the transparency made the change.

one of those days ...
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
Post Reply