ExportOptionsSaveForWeb

Options for exporting Save For Web files.

Hierarchy:

Superclass: ExportOptions

Class: ExportOptionsSaveForWeb

Constants/Events

Name

Type

Access

Description

PNG8

Boolean

readonly

If true, uses 8 bits. If false, uses 24 bits. Valid only when 'format' = PNG.

blur

Number

readonly

The amount of blur to apply to the image to reduce artifacts.

colorReduction

ColorReductionType

ColorReductionType.PERCEPTUAL

ColorReductionType.SELECTIVE

ColorReductionType.ADAPTIVE

ColorReductionType.RESTRICTIVE

ColorReductionType.CUSTOM

ColorReductionType.BLACKWHITE

ColorReductionType.GRAYSCALE

ColorReductionType.MACINTOSH

ColorReductionType.WINDOWS

readonly

The color reduction algorithm.

colors

Int

readonly

The number of colors in the palette.

dither

DitherType

DitherType.NONE

DitherType.DIFFUSION

DitherType.PATTERN

DitherType.NOISE

readonly

The type of dither.

ditherAmount

Int

readonly

The amount of dither. Valid only when 'dither' = diffusion.

format

SaveDocumentType

SaveDocumentType.PHOTOSHOP

SaveDocumentType.BMP

SaveDocumentType.COMPUSERVEGIF

SaveDocumentType.PHOTOSHOPEPS

SaveDocumentType.JPEG

SaveDocumentType.PCX

SaveDocumentType.PHOTOSHOPPDF

SaveDocumentType.PICTFileFORMAT

SaveDocumentType.PICTRESOURCEFORMAT

SaveDocumentType.PIXAR

SaveDocumentType.PNG

SaveDocumentType.RAW

SaveDocumentType.SCITEXCT

SaveDocumentType.TARGA

SaveDocumentType.TIFF

SaveDocumentType.PHOTOSHOPDCS_1

SaveDocumentType.PHOTOSHOPDCS_2

SaveDocumentType.ALIASPIX

SaveDocumentType.ELECTRICIMAGE

SaveDocumentType.PORTABLEBITMAP

SaveDocumentType.WAVEFRONTRLA

SaveDocumentType.SGIRGB

SaveDocumentType.SOFTIMAGE

SaveDocumentType.WIRELESSBITMAP

readonly

The file format to use. Save For Web supports only Compuserve GIF, JPEG, PNG-8, PNG-24, and BMP formats.

includeProfile

Boolean

readonly

If true, includes the document's embedded profile.

interlaced

Boolean

readonly

If true, the image downloads in multiple passes, progressive.

lossy

Int

readonly

The amount of lossiness allowed.

matteColor

RGBColor

readonly

The colors to blend transparent pixels against.

optimized

Boolean

readonly

If true, creates smaller but less compatible files.

quality

Int (range 0 - 100)

readonly

The quality of the produced image (as a percentage). Range: 0 to 100.

transparency

Boolean

readonly

If true, transparent areas of the image are included in the saved image.

transparencyAmount

Int

readonly

The amount of transparency dither. Valid only when 'transparency' = true.

transparencyDither

DitherType

DitherType.NONE

DitherType.DIFFUSION

DitherType.PATTERN

DitherType.NOISE

readonly

The transparency dither algorithm.

webSnap

Int

readonly

The tolerance amount within which to snap close colors to web palette colors.