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