
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 106
ExportOptionsSaveForWeb
Options that can be specified when optimizing a document for the web or devices.
Properties
Property
Value type
What it is
blur
number (double)
Read-write. Applies blur to the image to reduce
artifacts (default:
0.0
).
colorReduction
ColorReductionType
Read-write. The color reduction algorithm (default:
ColorReductionType.SELECTIVE
).
colors
number (long)
Read-write. The number of colors in the palette
(default:
256
).
dither
Dither
Read-write. The type of dither (default:
Dither.DIFFUSION
).
ditherAmount
number (long)
Read-write. The amount of dither (default: 100).
Note:
Valid only when
dither = Dither.DIFFUSION
. See
dither
.
format
SaveDocumentType
Read-write. The file format to use (default:
SaveDocumentType.COMPUSERVEGIF
).
Note:
For this property, only
COMPUSERVEGIF
,
JPEG
,
PNG-8
,
PNG-24
,
and
BMP
are
supported.
includeProfile
boolean
Read-write. Indicates whether to include the
document’s embedded color profile (default:
false
).
interlaced
boolean
Read-write. Indicates whether to download in
multiple passes; progressive (default:
false
).
lossy
number (long)
Read-write. The amount of lossiness allowed
(default:
0
).
matteColor
RGBColor
Read-write. The colors to blend transparent pixels
against.
optimized
boolean
Read-write. Indicates whether to create smaller
but less compatible files (default:
true
).
Note:
Valid only when
format = SaveDocumentType.JPEG
.
See
format
.