beautypg.com

Generate css layers for web graphics, Vary optimization based on a mask – Adobe Photoshop CS3 User Manual

Page 535

background image

PHOTOSHOP CS3

User Guide

528

Clip To Artboard

(Illustrator only) Clips the artwork size to match the document’s Artboard boundary. Any artwork

outside the Artboard boundary will be deleted.

Note: None of the features in the Image Size palette are available for the SWF and SVG file formats except Clip To
Artboard.

3

Enter new pixel dimensions or specify a percentage by which to resize the image, and click Apply.

Generate CSS layers for web graphics

You can use layers in your Illustrator artwork to generate CSS layers in the resulting HTML file. A CSS layer is an
element that has an absolute position and can overlap with other elements in a web page. Exporting CSS layers is
useful when you plan to create dynamic effects in your web page.

The Layers palette in the Save For Web & Devices dialog box gives you control over which top-level layers in your
artwork are exported as CSS layers, and whether exported layers are visible or hidden.

1

Click the Layers tab in the Save For Web & Devices dialog box.

2

Select Export As CSS Layers.

3

Select a layer from the Layer pop-up menu, and set the following options as desired:

Visible

Creates a visible CSS layer in the resulting HTML file.

Hidden

Creates a hidden CSS layer in the resulting HTML file.

CSS layers are the same as GoLive layers. Using Adobe GoLive, you can animate a CSS layer and use built-in
JavaScript actions to create interactive effects.

See also

“Save For Web & Devices overview” on page 523

“Optimize an image for the web” on page 525

Vary optimization based on a mask

You can vary optimizations settings across an image (called weighted optimization) using masks to produces higher-
quality results in critical image areas without greatly increasing file size. You can set weight optimization for the
following settings:

Quality for JPEG images.

Dithering for GIF, PNG-8, and WBMP images.

Lossy for GIF images.

Generated color table for GIF and PNG-8, favoring colors in specific image areas.

To apply weighted optimization, you first create an alpha channel mask, or use the automatically generate mask for
type layers and shape layers.