dunno if this is already covered, as I'm only quickly browsing, but for those using photoshop (techniques will apply to other editors) a good tutorial optimizing .jpg and .gif can be found here ...