Pages

Wednesday, August 4, 2010

Slicing Images

Step 1: Begin with an image you'd like to slice

Step 2: Show the Rulers

View>Show Rulers or Control-R/Command-R

Step 3: Drag out some guides

  1. Move your cursor into the rulers. You can now click and drag out a guide from the rulers.
  2. You can also drag guides out vertically. Just start from the top ruler and drag down. I'll drag one more guide out from the top.

Step 4: Draw out the slices

  1. Select the Slice Tool
  2. From the top left corner, drag out a selection to the center of the image. The slice should snap to the guides.
  3. Go ahead and repeat for the remaining sections of your image.

Step 5: Edit the slice

Select the Slice Select Tool and right click in an area containing a slice.



Step 6: Editing the Slice Options

In here, you can change the name of the slice to something more identifiable as well as give the sliced image a URL, target, text and alt tag.

In this example I only added a name for the slice

Editing the Slice Options

Step 7: Saving for Web

Now, you only need to go to File>Save for Web. This exports the images and the HTML code.

The Save For Web Dialog window comes up

Saving for Web

Step 8: Finishing Up

  1. Click OK and save to a new folder
  2. In the folder you'll see that Photoshop created an html file and a folder called images
Finishing Up

Step 9: Testing the Page

Double click the slicing.html file and you'll see the image placed in it's own table.

You can also view the code by right-clicking in the web page (not on an image) and selecting View Source from the menu to see the code generated by Photoshop.

You can see the names of the image slices we renamed: topleft.jpg, topright.jpg, bottom.jpg, and bottomright.jpg. Photoshop wrote the html and put these into a table for us:)

Testing the Page

SOURCE::http://www.cbtcafe.com/photoshop/slicingimages/part2.html
abuiyad

No comments:

Post a Comment