[TYPO3-english] Gifbuilder - GIFs for IE6 and PNG for all other browsers ?

Jigal van Hemert jigal at xs4all.nl
Thu Jul 22 19:24:06 CEST 2010


Christophe Stadler wrote:
> So the question is if it's possible to somehow make typo3/gifbuilder
> generate GIF's for IE6 but use PNGs for all other browsers ? As it stand i
> am getting the not so pretty green/grey background on transparent PNG's in
> explorer ...

Conditions are a possible solution:

[browser = msie]
lib.format = gif
[else]
lib.format = png
[end]

10 = IMAGE
10 {
   file = GIFBUILDER
   file {
     XY = 100, 100
     backColor = red
     format < lib.format
     10 = TEXT
     10 {
       text = TEST
       fontSize = 24
       offset = 20,20
     }
   }
}

For IE the format is gif, for other browsers png.

> As an alternative i have tried using this hack to make the PNG's transparent
> in IE6 but didn't have much luck yet ...
> http://www.belafontecode.com/transparent-png-in-ie6-with-css-hacks-and-alpha
> imageloader/

There are a few PNG fixes which work okay for a couple of images on a 
page. In TYPO3 4.4 the original plans were to use an IE6 PNGfix script 
for the sprite images in the backend. The performance of IE6 was so bad 
with that fix that close to the release date for IE6 GIF sprites were used.

I personally would stay away as far from these fix scripts as possible.

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-english mailing list