I've vowed to not use transparent PNGs until almost everybody has switched to IE7, where they are actually supported (despite being supported by every other major browser). I've done the hacks, and have had good results. I like using PNGs, I'll admit it. Inkscape exports them directly, however one slight problem: transparency still exists. This isn't really a problem since I'm not layering images, or is it?
My initial assumption is that IE would simple pull the white background and everything would be dandy. Well, we all know what they say about assumptions.
A few options exist:
We have a winner! The problem is, for the life of me, I couldn't figure out a simple convert command to do this. The quick bash script would suffice:
#/bin/bash CONVERT=/usr/bin/convert for image in *.png; do $CONVERT -background white $image $image echo "Finished converting: $image" done
Note:This is gonna convert all PNGs.
So, no the transparent GIFs have a "white" base layer, IE renders them fine, normal browswers render the images fine, and I'm allowed a cup of coffee. I hope this helps somebody, if so, leave a note!
This entry is from my tutorial section and was written on May 7, 2007. It's been tagged with Tips, Tricks and Hacks. There have been 1 comments so far.
If you do not use background images the easiest way is indeed to set the background color for the png image. IE display the background color fine, and it can be any color - not just white.
You can also use Gimp. Just set the background color on Gimp and be sure the option is set to store it.