A good an easy solution is to add a mate layer (as Fireworks internally
does), then what you need to do is to first, create a selection mask
selecting the transparent area, then you should add the "mate" layer, that
layer only has one color, the color used there should be the same you are
going to use on your background.

After that simply merge the layer that has the antialiased element (could be
text or an image) with the mate layer and use the mask to clear the extra
color.  There you go, you will be able to keep the antialias effect using a
8-bit gif.

I created a small plugin for the gimp to automate the task, but only works
with one layer, so if you want to use it you should merge all the layers
first and then apply the effect.

Here is the plugin:  http://www.nabble.com/file/p12330565/gif-mate-alpha.py
Just copy it to your gimp plugins folder.  If anyone feels like improving
it, you are very welcome, just share the changes with the rest of us, I
already have some ideas on how to improve it (especially when it comes to
working with a multi layered image), just need some time to do so.

Obviously it is better to use a 24 bits PNG when you need a real alpha
transparency, but since IE is a piece of crap and a lot of people still uses
IE6, and I haven't have the time to test it on IE7 there is no other option
than to use GIFs for your web projects

A sample of the result.  If you can't see the background color, it is black,
just put these images over a black background to see the difference.

Original PNG:

Regular GIF:

Modified GIF:


View this message in context: 
Sent from the Gimp User mailing list archive at Nabble.com.
Gimp-user mailing list

Reply via email to