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 - I Like my Graphics Sliced Thin (Page 3 of 6 )
Now that you know a little more about the slicing tool, itís time that we go a little farther in-depth with the slicing of our layout. So, let's go ahead and slice our background. The best way to do it is to zoom in to a really good working size at the top left corner then begin to slice.
After I zoom in, I begin with the slicing the top left corner. Then I continue with a one pixel wide slice of the top ďbarĒ part of the background, and a 1 pixel tall slice of the left ďbarĒ. I make them 1 pixel tall or wide, based on their location, because instead of having an image thatís 158 pixels wide that has a file size thatís about 8k, I get an image thatís 1 pixel wide that is around 20bytes that can be tiled. This is what my view looks like after Iíve made the first three slices.
After I make those three slices, I then slice the following three corners, and I slice a 1 pixel wide sample of the bottom bar and a 1 pixel tall sample of the right bar. Thatís all the images needed to remake the background area at any size needed. Now let's slice the content block.
The content block is done in the exact same way the background area was sliced, with one small difference. Look at the following image and see that I completely forgot to slice the dark blue boarder in the inner part of the block. I left it out on purpose. Since the inner part is a rectangular area with no complex image in it, this area can be recreated with code, which loads a lot faster than an image.
Once again I go ahead and get the last three corners, and the other two bars. Then I go to save all my slices with the ďsave for webĒ tool that can be found on the file menu of Photoshop.