[TYPO3-english] Gifbuilder - GIFs for IE6 and PNG for all other browsers ?
Ron Hall
ronslists at busynoggin.com
Thu Jul 22 23:59:06 CEST 2010
Tagging on to two posts to save on replies
> On Jul 22, 2010, at 12:24 PM, Jigal van Hemert wrote:
> For IE the format is gif, for other browsers png.
I would recommend writing the conditional just to give the GIF to IE6. Other IE's will handle PNG's just fine.
Make sure that PNG is the format you want. When it comes to solid colors and type GIFs do fine on all platforms. If you are generating photos then JPGs are usually best as PNG file size becomes a problem. PNGs are great when you need drop shadows with alpha transparencies.
> On Jul 22, 2010, at 9:59 AM, Christopher Torgalson wrote
> It may be true that any given site's proportion of IE6 visitors is too
> low to require additional support, but it is *not* safe to use any
> other site's traffic statistics to make this decision. Indeed, given
> that it's a site dealing with web development in general, there is
> some reason to think that w3schools' IE6 market share is much *lower*
> than is typical.
Yes, always go by the individual site for making browser support decisions. However, I have noticed substantial changes in IE6 & even IE7's share on general sites over the last 8 months. Maybe the long anticipated irrelevance of IE6 may not be far off. Can I get an "amen" on that?
Thanks,
Ron Hall
On Jul 22, 2010, at 12:24 PM, Jigal van Hemert wrote:
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list