Adobe Photoshop CS5 Object Library JS: ExportOptionsSaveForWeb

Photoshop CS5

Class

ExportOptionsSaveForWeb

 Options for exporting Save For Web files. Base Class: ExportOptions

Class

PropertyTypeAccessDescription
PNG8bool r/wIf true, uses 8 bits. If false, uses 24 bits. Valid only when 'format' = PNG. (default: true)
blurnumber r/wThe amount of blur to apply to the image to reduce artifacts. (default: 0)
colorReductionColorReductionType:
ColorReductionType.PERCEPTUAL
ColorReductionType.SELECTIVE
ColorReductionType.ADAPTIVE
ColorReductionType.RESTRICTIVE
ColorReductionType.CUSTOM
ColorReductionType.BLACKWHITE
ColorReductionType.GRAYSCALE
ColorReductionType.MACINTOSH
ColorReductionType.WINDOWS
r/wThe color reduction algorithm. (default: ColorReductionType.SELECTIVE)
colorsint r/wThe number of colors in the palette. (default: 256)
ditherDither:
Dither.NONE
Dither.DIFFUSION
Dither.PATTERN
Dither.NOISE
r/wThe type of dither. (default: Dither.DIFFUSION)
ditherAmountint r/wThe amount of dither. Valid only when 'dither' = diffusion. (default: 100)
formatSaveDocumentType:
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
r/wThe file format to use. Save For Web supports only Compuserve GIF, JPEG, PNG-8, PNG-24, and BMP formats. (default: SaveDocumentType.COMPUSERVEGIF)
includeProfilebool r/wIf true, includes the document's embedded profile. (default: false)
interlacedbool r/wIf true, the image downloads in multiple passes, progressive. (default: false)
lossyint r/wThe amount of lossiness allowed. (default: 0)
matteColorRGBColor r/wThe colors to blend transparent pixels against.
optimizedbool r/wIf true, creates smaller but less compatible files. (default: true)
qualityint r/wThe quality of the produced image (as a percentage). Range: 0 to 100. (default: 60)
transparencybool r/wIf true, transparent areas of the image are included in the saved image. (default: true)
transparencyAmountint r/wThe amount of transparency dither. Valid only when 'transparency' = true. (default: 100)
transparencyDitherDither:
Dither.NONE
Dither.DIFFUSION
Dither.PATTERN
Dither.NOISE
r/wThe transparency dither algorithm. (default: Dither.NONE)
webSnapint r/wThe tolerance amount within which to snap close colors to web palette colors. (default: 0)
Jongware, 28-Aug-2012 v3.0.3iContents :: Index