Design a Website In Photoshop Article

Tweet
Optimizing and Exporting

We are now going to optimize and export each slice. Use the “Slice Selection Tool” to select the slice called gray_bar Now, hold down the shift key, and click the blue_square slice. As these are both single-color images, we can optimize both at the same time. Use these settings to optimize the two slices as gifs:

881_screen5

Next, use the “Slice Selection Tool” to select the header, and then, holding down the shift key, click on the footer too. As these slices have complex color transitions it’s best to save them as jpegs. Uses these settings:

881_screen6

The reason that I’ve included a small amount of blur here is to smooth out some of the pixelation that’s often associated with jpeg images. This is not a common practice when optimizing photographs, however, because the photo will look out of focus.

To export these images use the “Slice Selection Tool” to select the header, footer, blue_square and the gray_bar:

881_screen7

In the File menu choose “Save Optimized As”:

881_screen8

With this, you have a few options:

  1. you can choose the destination (where the images and code will be saved) and then click save, or
  2. you can choose to save the HTML only, and it will create an HTML page that will fit the layout you designed.
  3. The third option — saving only the images we’ve selected — is what we are going to do.

In the “Save as type” dialog box choose “Images Only”. Then, below that, choose “Selected Slices”. As a default, ImageReady will save all the selected images in an “images” folder. You can click on the “Output Settings” box, and in the lower part of this dialog deselect the “Put images in folder:” check box if you like. I generally create the folder structure of a new Website before I slice the image up — obviously you can save the files to any folder you like. Once you’ve selected the location, click save.

881_screen9

The next step is to create the HTML page we will later use as a template for the rest of the Website. If you’re wondering why we didn’t save the center slices of our original layout image, here’s why. The gray box in the center of the image will contain your content. The blue horizontal bars at top and bottom (ie. below and above the header and footer) similarly serve to designate the location of text links for your navigation.

Go to page: 1 | 2 | 3 | 4

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

No Reader comments