PNG transformer - Using PNG
On amix.dk I use the PNG format for some parts of the site. PNG format gives ability for images to be transparent and anti-aliased. In this little article I will describe my experience and the way I hacked support for IE. To get you started you can check out those sites that describe the way to hack support for Internet Explorer (IE):
Where do you use it?On amix.dk I have some parts where PNG images are essential:
My experience with PNG BehaviorWhen I first started I had used the "PNG Behavior" hack by WebFX and it had some problems:
The fix - PNG transformer
My little PNG transformer
Following features are removed from "PNG Behavior":
I had removed those things since I don't use them. They also slow execution of the How to use it?Download pngtransformer.zip. In it you will find a demo that shows how to use the script. Last remarksUse the PNG format only for pictures that really need to be anti-aliased. More PNG pictures = Slower rendering time in IE.
Code
•
24. Jan 2005
|
|