Remove background of an image without annoying pixels around the edges

Sometimes I want to modify images for a website and make them transparent. When I remove the background, background pixels are still visible and I always wondered what the best solution would be to resolve this. I found this post of blogger Haishi that resolved it for me. The method is done with GIMP, a free image editing tool. Just follow the next few steps: Open the picture in GIMP. In Layers window, right-click the layer and select Add Alpha Channel. Duplicate the layer. Hide the lower layer, then select the top layer. Use color selection tool to select background. Use Select->Grow menu to grow the selection by 1-2 pixels. ...