Slicing and Saving Graphics in Photoshop for Use on the Web
Images are the number one leader of average bandwidth usage. Usually it’s because the images that load on every single page are typically between a total of 60k and a total of 500k. That can easily make your bandwidth usage add up to beyond your limit per month. So what I’m going to be showing you is how you can cut your image’s file sizes in half, if not more.
Slicing and Saving Graphics in Photoshop for Use on the Web - Please, Save Me! (Page 5 of 6 )
The save dialog settings are very important when you plan on using your images in a webpage. I’ve found that while Photoshop will produce the html you need to use your images, it’s usually best to use the html version that it produces to build a new html version in, on your own in your html editor. Generally it also adds in a lot of junk code that you don’t need; it also makes it so that you have a static layout that you have no place to put content, and of course that’s not a very good page.
The first thing you want to do is change the “Save as type” to “HTML and Images” then set the “Slices” to “All User Slices”. This way we’ll only get the User Slices I talked about, which makes them easier to work with so you don’t get them confused with the saved and unneeded Non-User Slices.
Next in the “Settings” dropdown, select “Other…”. You’ll notice a new dialog that will pop up. The first part of this is where you’ll set how the naming of your slices work. I usually like to make the first parameter the name of the website, then an underscore then the slice number with leading zeros, then the extension.
After you’ve set up your image naming, click the “Next” button on the right to set up the HTML output. On the HTML output section, I always use the same settings. I set it to use XHTML, and then indent with tabs. The rest I leave as default; go ahead and click the next button again. This is where you set up the slice output, I always have it generate a table instead of CSS, this way you have a more editable and solid layout. Also, I tell it to use “NoWrap, TD W&H” for empty cells, that way it won’t make any spacer images. Then I set the TD W&H as “Always” and the Spacer Cells to “Always (bottom)”, that way your cells will always have the width and height hard coded in so it’s a little easier to edit.
That’s just about all you have to do to set up the save options; go ahead and click OK, then find the directory you want to save your files to and click the save button.