Creating a dithered transparency

In this section, you’ll create a dithered transparency for a graphic that will serve as the entry point from another Web page to the zoo map. By creating a dither from an opaque drop shadow to transparency, you’ll make it possible to create a smooth transition from the image to any color backdrop on the page without having to redo any work.

You’ll do this in two procedures. First, you’ll apply a drop shadow to the image. Then, you’ll add dithering to the drop shadow so that it blends into a background color for the Web page.

You can do this procedure in Photoshop or do it in ImageReady using the same controls but in slightly different locations.

Adding a drop shadow

The file you’ll be working on is intended to serve as the “entry” button on the portal page to the zoo Web site. You’ll add a drop shadow to the button to make the image appear to float above the background, emphasizing that it is an interactive element of the page.

1.
Choose File > Open, and select the 14Start3.psd file in the Lessons/Lesson14 folder.

2.
In the Layers palette, click the Add A Layer Style button () at the bottom of the palette, and then select Drop Shadow from the pop-up menu.

3.
In the Layer Style dialog box (Photoshop) or the Drop Shadow palette (ImageReady), enter the following values:

  • For Distance, drag the slider or type 15.

  • For Spread, drag the slider or type 7%.

  • For Size, drag the slider or type 15.

4.
(Photoshop only) Click OK to close the Drop Shadow dialog box.

5.
Choose File > Save.

Adding transparency dithering to the drop shadow

As you’ve already learned, dithering is a method of creating gradations of color with a limited color palette. This makes it useful for Web pages because you can simulate smoother gradations without sacrificing small file size and quick downloads.

1.
With the 14Start3.psd active, choose File > Save for Web to open the Save for Web dialog box. (This step is not necessary in ImageReady.)

2.
Click the Optimized tab in the Save for Web dialog box (Photoshop) or image window (ImageReady).

3.
On the right side of the Save for Web dialog box (Photoshop) or in the Optimize palette (ImageReady), set the following options:

  • In the Settings pop-up menu, select GIF 128 Dithered.

  • Select the Transparency check box, if it is not already selected.

    Note

    In ImageReady, if you do not see the Transparency check box, open the Optimize palette menu and choose Show Options, or click the double-arrows () on the Optimize tab to expand the palette so that you can see all the options.

  • In the pop-up menu below the Transparency check box, select Diffusion Transparency Dither.

  • In the Amount option, use the pop-up slider or type 55%.

    Save For Web dialog box(Photoshop)

    Optimize palette (ImageReady)

4.
Click the Matte swatch to open the color picker. Select any color other than white, and click OK. (We selected a light brown: R=220, G=190, B=150.)

To see the effect of the matte setting, try zooming in so that you can see individual pixels in the dither—about 400% or higher. Notice that the pixels closest to the edge of the green area are black and that the others become increasing more blended with the matte color as they occur farther from the edge. Then zoom back to 100%.

5.
At the bottom of the Save For Web dialog box, click the button with the browser icon, or click the arrow to select your browser from the pop-up menu. (In ImageReady, use the Preview In Default Browser button in the toolbox to open the file in a browser.)

6.
In the browser, notice how the drop shadow blends against the background matte color. When you finish viewing your document, close the browser or switch back to Photoshop (or ImageReady).

7.
Click the Save button in the Save for Web dialog box. (In ImageReady, choose File > Save Optimized.)

8.
In the Save Optimized As dialog box, accept the default settings and filename (14Start3.gif) and save the file in your Lessons/Lesson14 folder.

9.
Choose File > Save to save the 14Start3.psd file, or close the file without saving.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.141.208