There is a new feature in Photoshop 6.0: Weighted optimisation. This allows a single JPEG or GIF image to have variable compression . There is no special browser plug in required; and is reasonably easy to set up.
It is useful when there is a featured object, or text that must be of high quality, and the rest of the image is needed to be as small as possible.
1. Create a selection around the object you wish to have in high quality.
2. Feather the selection, and Expand the Selection (Select>Feather and Select>Modify>Expand)
3. From the Channels palette, click on the “Create Channel from Selection” button Name the selection something useful.
4. File>Save For Web. The button to click on to access the Modify Quality is the small circle.
5. The black marker on the slider represents the black area in the chosen channel. Therefore, the black areas are getting a greater compression setting in the JPEG compression algorithm. The white end of the slider is having less compression. Areas in between get variable compression depending on the ‘greyness’
6. With GIF images, there is no compression per se. Therefore, with GIF compression the Save for Web dialog box changes the lossiness of the GIF which reduces the resulting file size.