Below is a tutorial that will assist you in using Gimp to optimize an image for the web.

http://hostek.com/httutorials/Gimp.html