Forums / Templates, Stylesheets, Page Layout / *.png IE correction?

*.png IE correction?

Locked

Started by freebe on 12 Jun 2008, 6:57 PM · Views: 4,343

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
12 Jun 2008, 6:57 PM
#1
freebe avatar

freebe

New Zenner

Join Date:
Jun 2008
Posts:
2
Plugin Contributions:
0

*.png IE correction?

I was wondering if there is a correction/hack for the way IE handle png images. Firefox handles these type images fine. I was using this image for my logo.png. Thanks for any suggestion.
Adrian

12 Jun 2008, 8:37 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: *.png IE correction?

Easiest to convert to either gif or jpg

Zen-Venom Get Bitten

12 Jun 2008, 10:38 PM
#3
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: *.png IE correction?

Ignore kobra and stick with pngs!

:smile:

Use the png fix javascript:
http://homepage.ntlworld.com/bobosola/

And put this in your header:

<!--[if lt IE 7.]> <script defer type="text/javascript" src="PATH/TO/pngfix.js"></script> <![endif]-->
12 Jun 2008, 11:23 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: *.png IE correction?

bigbadboy,

Have you got a Love Affair with .png's?

For IE - a patch here and a patch there - - When is Gates gonna wake up?

Zen-Venom Get Bitten

13 Jun 2008, 12:29 AM
#5
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: *.png IE correction?

PNGs are the only real way to use transparency across board.
Unfortunatley M$ don't care about such things.

:censored:

13 Jun 2008, 1:49 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: *.png IE correction?

PNGs are the only real way to use transparency across board.
Share where a trans gif is not equivalent? Please...

Zen-Venom Get Bitten

13 Jun 2008, 1:51 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: *.png IE correction?

Unfortunatley M$ don't care about such things.
Yeah!! When ya spend all your time counting your $ - You do not have time any more to pay attention to your users needs...

Zen-Venom Get Bitten

13 Jun 2008, 12:30 PM
#8
freebe avatar

freebe

New Zenner

Join Date:
Jun 2008
Posts:
2
Plugin Contributions:
0

Re: *.png IE correction?

Thanks for taking the time to answer a question I should have just googled to find the answer.
adrian

16 Jun 2008, 5:58 AM
#9
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: *.png IE correction?

kobra:

Share where a trans gif is not equivalent? Please...

Well...I discovered if you make an image that is a solid color but semi transparent, png's (specifically png-24) will show the transpareny correctly, but gifs make it jagged, pixelized, and two toned. FF will show the image correctly, while IE will show it as an opaque solid color.

Never thought there would be a need for a semi transparent background color that couldn't be achieved with CSS, but apparently there is:ohmy:

14 Apr 2009, 2:28 AM
#10
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: *.png IE correction?

bigbadboy:

Use the png fix javascript:
http://homepage.ntlworld.com/bobosola/

And put this in your header:

<!--[if lt IE 7.]> <script defer type="text/javascript" src="PATH/TO/pngfix.js"></script> <![endif]-->

I have a need for exactly this fix and I came across this wonderful tip but I am somewhat confused as to where I should put the above: That is, the header of which file?

Specifically, I would like to make this javascript fix work in /includes/languages/english/<template>/header.php but that is a PHP file, with defines only, not an HTML file... How do I find the HTML file that is responsible for this one?

Thanks,
Daniel

14 Apr 2009, 2:38 AM
#11
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: *.png IE correction?

OK, I think that I found the file (please correct if I am mistaken):

/includes/templates/<template>/common/html_header.php

Right? :smile:

14 Apr 2009, 4:26 AM
#12
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: *.png IE correction?

zcnb:

/includes/templates/<template>/common/html_header.php

Right?

Right. This is it. However, it doesn't take care of PNG image referred in the CSS. :mellow:

15 Apr 2009, 2:24 PM
#13
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: *.png IE correction?

Still looking for a solution that works for CSS background images too. So far, I came across the following:

http://net.tutsplus.com/videos/screencasts/5-easy-ways-to-tackle-ie6s-transparency-issues/

Which led me to the following two options (the others simply don't work for some reason):

http://www.dillerdesign.com/experiment/DD_belatedPNG/

and

http://www.twinhelix.com/css/iepngfix/

I am going to explore these now...

15 Apr 2009, 8:37 PM
#14
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: *.png IE correction?

I am giving up. :(

The best "fix" so far seem to be the one by twinhelix. However, even that one has quirks and problems - the most notable one being the following error message:

IEPNGFix: Children of positioned element are unclickable:

<UL id=categories_tabs>

The one "feature" that is common to all these fixes is the horrible slowness in which the load the page (on IE6, not on FF).

Back to square one...

30 Aug 2009, 4:48 PM
#15
tonibarcelona avatar

tonibarcelona

Inactive

Join Date:
Feb 2007
Location:
Barcelona
Posts:
200
Plugin Contributions:
0

Re: *.png IE correction?

The easiest way, insert this at your .htaccess file:

minimize image flicker in IE6

ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/png A2592000

15 Oct 2009, 8:34 AM
#16
zamzom avatar

zamzom

New Zenner

Join Date:
Jun 2009
Location:
Europe
Posts:
60
Plugin Contributions:
0

Re: *.png IE correction?

zcnb:

Still looking for a solution that works for CSS background images too. So far, I came across the following:

http://net.tutsplus.com/videos/screencasts/5-easy-ways-to-tackle-ie6s-transparency-issues/

Which led me to the following two options (the others simply don't work for some reason):

http://www.dillerdesign.com/experiment/DD_belatedPNG/

and

http://www.twinhelix.com/css/iepngfix/

I am going to explore these now...

There seems to be a danger with CSS hacking(at least done in the last link). I recommend to read:
http://24ways.org/2007/supersleight-transparent-png-in-ie6