Home arrow Photoshop arrow Page 5 - Slicing and Saving Graphics in Photoshop for Use on the Web

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.

Author Info:
By: James Murray
Rating: 4 stars4 stars4 stars4 stars4 stars / 33
July 27, 2004
  1. · Slicing and Saving Graphics in Photoshop for Use on the Web
  2. · Butcher your Graphics
  3. · I Like my Graphics Sliced Thin
  4. · Functional Formats
  5. · Please, Save Me!
  6. · Last Words

print this article

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.

blog comments powered by Disqus

- Photoshop Text Techniques: Transformers
- 3D Text in Photoshop
- Photoshop Text Tutorial: Creating Indy Text
- Photoshop Productivity Tips and Tricks
- Photoshop Keyboard Shortcuts
- The Critically Important Color and Gamma Cal...
- Using Adobe Photoshop CS, Part 2
- Using Adobe Photoshop CS, Part 1
- 20 Things About Photoshop You Have to Know
- Photoshop Tricks, Part 2
- Photoshop Tricks, Part 1
- Keeping Up Appearances: Techniques for Retou...
- Navigation Menus in Photoshop
- Slicing and Saving Graphics in Photoshop for...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials