your how-to site for community journalism

Present It! Photography and Graphics

Using Photoshop Slices

When Web design became a significant part of a Photoshop user's job, Adobe added Slices to its arsenal of design tools. Slices can be used to save changes as you create graphics for the Web. Essentially, you will use Slices to divide up a Photoshop document. Each "Slice" gets saved as a different image when you Save for Web.

Slices are especially useful for Web designers who mock up entire Web pages in Photoshop during the design process, and then want to export the graphics and the HTML code needed to reproduce the mock-up as a Web page. For example, this Web site was mocked up in Photoshop, tweaked and re-tweaked, and finally sliced up to produce the individual images that make up the site.

Slicing is also very handy for creating a graphical navigation bar, since it's easier to keep your graphics and buttons in a single Photoshop file.

Here's a quick tour to using Slices:

  1. Open a Photoshop document that you want to slice up.
  2. Click the Slice tool (*) in the toolbox, and click and drag into your document to draw a rectangular slice. Photoshop automatically numbers your slice and creates a brown slice outline around the area you selected.
  3. Adjust the handlebars on the Slice to make it the right size.
  4. Click and drag to define a second Slice.
  5. Outlined in blue will be Slices that you are not currently working on. To edit another Slice, select the Slice Selection tool (*) in the toolbox (you can access it by clicking and holding the Slice Tool in the toolbox) and then click the Slice you want to edit.
  6. If you plan to export HTML as well as images, you can double-click on a Slice to open the Slice Options window, which allows you to set certain HTML settings and give the image a file name. You can also resize the image using the Slice Options window.

  1. When you have defined all your Slices and set up your Slice options, choose Save for Web from the File menu.
  2. You can select each Slice individually and give it a setting from the settings menu. (For more help on Saving for Web, see the section titled Creating Web-formatted images.
  3. When you are finished, click Save. (Notice the options available at the bottom of the Save box. Set these to save HTML and images or only the images from your file. You can also set Photoshop to save only Slices you selected in the Save for Web window or to save All Slices.)

10. Click Save. Unless you changed the settings, Photoshop saves the images in an HTML file that contains the code to build the document and the images in a separate folder. Open this up in your HTML editor to make any necessary tweaks.

J-Learning is an initiative of J-Lab: The Institute for Interactive Journalism. J-LabTM is an incubator for innovative, participatory news experiments and is a center of American University's School of Communication in Washington, D.C.
J-Learning was funded by the John S. and James L. Knight Foundation.

American University School of Communication

Knight Foundation

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.

Site design, programming and content by Hop Studios.