src/pages/ps_reference/modules/constants.md
To use any constant, import the constants object from the photoshop module first.
const {app, constants} = require("photoshop");
await app.activeDocument.resizeImage(
800, 600, 100,
constants.InterpolationMethod.AUTOMATIC
);
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The point around which to transform an object.
This is the point that does not move when an object is rotated or resized
| Name | Description |
|---|---|
| BOTTOMCENTER | - |
| BOTTOMLEFT | - |
| BOTTOMRIGHT | - |
| MIDDLECENTER | - |
| MIDDLELEFT | - |
| MIDDLERIGHT | - |
| TOPCENTER | - |
| TOPLEFT | - |
| TOPRIGHT | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
Method to use to smooth edges by softening the color transition between edge pixels and the background. Used in a CharacterStyle.antiAliasMethod
| Name | Description |
|---|---|
| CRISP | - |
| NONE | - |
| SHARP | - |
| SMOOTH | - |
| STRONG | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>
The kind of blending used in a Layer.applyImage operation.
| Name | Description |
|---|---|
| ADD | - |
| COLORBURN | - |
| COLORDODGE | - |
| DARKEN | - |
| DARKERCOLOR | - |
| DIFFERENCE | - |
| DIVIDE | - |
| EXCLUSION | - |
| HARDLIGHT | - |
| HARDMIX | - |
| LIGHTEN | - |
| LIGHTERCOLOR | - |
| LINEARBURN | - |
| LINEARDODGE | - |
| LINEARLIGHT | - |
| MULTIPLY | - |
| NORMAL | - |
| OVERLAY | - |
| PINLIGHT | - |
| SCREEN | - |
| SOFTLIGHT | - |
| SUBTRACT | - |
| VIVIDLIGHT | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>
Special channels used in Layer.applyImage.
| Name | Description |
|---|---|
| CMYK | - |
| LAB | - |
| RGB | - |
| SELECTION | - |
| TRANSPARENCY | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>
Use merged layers as a source in Layer.applyImage.
| Name | Description |
|---|---|
| MERGED | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The type of kerning to use for characters. Used in CharacterStyle.autoKerning
| Name | Description |
|---|---|
| MANUAL | - |
| METRICS | - |
| OPTICAL | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Number of bits per channel (also called pixel depth or color depth).
The number selected indicates the exponent of 2. With 8 bits per channel, we have 256 possible colors.
| Name | Description |
|---|---|
| EIGHT | - |
| FOUR | - |
| ONE | - |
| SIXTEEN | - |
| THIRTYTWO | - |
| TWENTYFOUR | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The baseline style to use in text. Used in CharacterStyle.baseline
| Name | Description |
|---|---|
| NORMAL | - |
| SUBSCRIPT | - |
| SUPERSCRIPT | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Specifies the quality of an image you are converting to bitmap mode. Used in BitmapConversionOptions
| Name | Description |
|---|---|
| CUSTOMPATTERN | - |
| DIFFUSIONDITHER | - |
| HALFTHRESHOLD | - |
| HALFTONESCREEN | - |
| PATTERNDITHER | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Specifies the shape of the dots (ink deposits) in the halftone screen. Used in BitmapConversionOptions
| Name | Description |
|---|---|
| CROSS | - |
| DIAMOND | - |
| ELLIPSE | - |
| LINE | - |
| ROUND | - |
| SQUARE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>
The number of bits per color channel.
| Name | Description |
|---|---|
| EIGHT | - |
| ONE | - |
| SIXTEEN | - |
| THIRTYTWO | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Blending mode
| Name | Description |
|---|---|
| COLOR | - |
| COLORBURN | - |
| COLORDODGE | - |
| DARKEN | - |
| DARKERCOLOR | - |
| DIFFERENCE | - |
| DISSOLVE | - |
| DIVIDE | - |
| EXCLUSION | - |
| HARDLIGHT | - |
| HARDMIX | - |
| HUE | - |
| LIGHTEN | - |
| LIGHTERCOLOR | - |
| LINEARBURN | - |
| LINEARDODGE | - |
| LINEARLIGHT | - |
| LUMINOSITY | - |
| MULTIPLY | - |
| NORMAL | - |
| OVERLAY | - |
| PASSTHROUGH | - |
| PINLIGHT | - |
| SATURATION | - |
| SCREEN | - |
| SOFTLIGHT | - |
| SUBTRACT | - |
| VIVIDLIGHT | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>
The kind of blending used in a Document.calculations operation.
| Name | Description |
|---|---|
| ADD | - |
| COLORBURN | - |
| COLORDODGE | - |
| DARKEN | - |
| DARKERCOLOR | - |
| DIFFERENCE | - |
| DIVIDE | - |
| EXCLUSION | - |
| HARDLIGHT | - |
| HARDMIX | - |
| LIGHTEN | - |
| LIGHTERCOLOR | - |
| LINEARBURN | - |
| LINEARDODGE | - |
| LINEARLIGHT | - |
| MULTIPLY | - |
| NORMAL | - |
| OVERLAY | - |
| PINLIGHT | - |
| SCREEN | - |
| SOFTLIGHT | - |
| SUBTRACT | - |
| VIVIDLIGHT | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>
Special channels used in Document.calculations.
| Name | Description |
|---|---|
| GRAY | - |
| SELECTION | - |
| TRANSPARENCY | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>
Use merged layers as a source in [Document.calculations]].
| Name | Description |
|---|---|
| MERGED | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>
The result of Document.calculations can go into a new document, a new channel in the active document, or a new selection in the active document.
| Name | Description |
|---|---|
| NEWCHANNEL | - |
| NEWDOCUMENT | - |
| SELECTION | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The new color profile or mode for a document, specified in Document.changeMode
NOTE: Color images must be changed to GRAYSCALE mode before you can change them to BITMAP mode.
| Name | Description |
|---|---|
| BITMAP | - |
| CMYK | - |
| GRAYSCALE | - |
| INDEXEDCOLOR | - |
| LAB | - |
| MULTICHANNEL | - |
| RGB | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The type of a color channel.
| Name | Description |
|---|---|
| COMPONENT | Specific to document color mode |
| MASKEDAREA | Alpha channel where color indicates masked area |
| SELECTEDAREA | Alpha channel where color indicates selected area |
| SPOTCOLOR | Alpha channel to store a spot color |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The character alignment to use in text. Used in CharacterStyle.characterAlignment
| Name | Description |
|---|---|
| EMBOXBOTTOMLEFT | - |
| EMBOXCENTER | - |
| EMBOXTOPRIGHT | - |
| ICFBOTTOMLEFT | - |
| ICFBOXTOPRIGHT | - |
| ROMAN | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>
The kind of blending used in a fill or stroke operation. Pass to PathItem.fillPath()
| Name | Description |
|---|---|
| BEHIND | - |
| CLEAR | - |
| COLOR | - |
| COLORBURN | - |
| COLORDODGE | - |
| DARKEN | - |
| DARKERCOLOR | - |
| DIFFERENCE | - |
| DISSOLVE | - |
| EXCLUSION | - |
| HARDLIGHT | - |
| HARDMIXBLEND | - |
| HUE | - |
| LIGHTEN | - |
| LIGHTERCOLOR | - |
| LINEARBURN | - |
| LINEARDODGE | - |
| LINEARLIGHT | - |
| LUMINOSITY | - |
| MULTIPLY | - |
| NORMAL | - |
| OVERLAY | - |
| PINLIGHT | - |
| SATURATION | - |
| SCREEN | - |
| SOFTLIGHT | - |
| VIVIDLIGHT | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The color model representing the current color space of a SolidColor object.
| Name | Description |
|---|---|
| CMYK | - |
| GRAYSCALE | - |
| HSB | - |
| LAB | - |
| NONE | - |
| RGB | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The provider of the color picker dialog. Pass to PreferencesGeneral.colorPicker
| Name | Description |
|---|---|
| ADOBE | The Adobe Photoshop Color Picker. |
| OSNATIVE | The built-in Apple or Windows color picker. |
| PLUGIN | A plugin-provided color picker. The`pluginID` property must be provided in the PreferencesGeneral.colorPicker argument object and must contain the internal ID of the plugin as a string. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Type of color profile used to manage a document, used in Document.colorProfileType
| Name | Description |
|---|---|
| CUSTOM | Set for all custom profiles |
| NONE | Set when document is not color managed |
| WORKING | Set when document uses the working color profile |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The method used for creating fields. Pass to Layer.applyDeInterlace.
| Name | Description |
|---|---|
| DUPLICATION | - |
| INTERPOLATION | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The source to use for the depth map. Pass to Layer.applyLensBlur().
| Name | Description |
|---|---|
| IMAGEHIGHLIGHT | - |
| LAYERMASK | - |
| NONE | - |
| TRANSPARENCYCHANNEL | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Controls the type of dialogs Photoshop displays during API calls
| Name | Description |
|---|---|
| ALL | All dialogs will be shown |
| ERROR | Dialogs will be shown only if Photoshop raises an error |
| NONE | All dialogs will be hidden, and bad calls will silently fail |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Used in multiple places to represent orientation.
Orientation of a guide in Guide.direction
| Name | Description |
|---|---|
| HORIZONTAL | - |
| VERTICAL | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
Describes how the displacement map fits the image if the image is not the same size as the map. Pass to Layer.applyDisplace.
| Name | Description |
|---|---|
| STRETCHTOFIT | - |
| TILE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The type of dithering
| Name | Description |
|---|---|
| DIFFUSION | - |
| NOISE | - |
| NONE | - |
| PATTERN | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Fill methods available for the new document background
| Name | Description |
|---|---|
| BACKGROUNDCOLOR | - |
| BLACK | - |
| COLOR | - |
| TRANSPARENT | - |
| WHITE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Color mode of an open document. See also Document.mode and Document.changeMode
| Name | Description |
|---|---|
| BITMAP | - |
| CMYK | - |
| DUOTONE | - |
| GRAYSCALE | - |
| INDEXEDCOLOR | - |
| LAB | - |
| MULTICHANNEL | - |
| RGB | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The history log edit options. Pass to PreferencesHistory.editLogItems
| Name | Description |
|---|---|
| CONCISE | Includes the text that appears in the History panel in addition to the Sessions information. |
| DETAILED | Includes the text that appears in the Actions panel in addition to the Concise information. If you need a complete history of all changes made to files, choose Detailed. |
| SESSIONONLY | Keeps a record of each time you start or quit Photoshop and each time you open and close files (each image’s filename is included). Does not include any information about edits made to the file. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Placement modes for Layer.move method
| Name | Description |
|---|---|
| PLACEAFTER | Place below a layer, below group if group layer |
| PLACEATBEGINNING | Place at the top |
| PLACEATEND | Place at the bottom, above background if background layer exists |
| PLACEBEFORE | Place above a layer, above group if group layer |
| PLACEINSIDE | Place inside a group layer, throws error if not group layer |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The type of field to eliminate. Pass to Layer.applyDeInterlace.
| Name | Description |
|---|---|
| EVENFIELDS | - |
| ODDFIELDS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>
Axis (or both) to flip a layer on. Pass to Layer.flip().
| Name | Description |
|---|---|
| BOTH | - |
| HORIZONTAL | - |
| VERTICAL | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
Font size in panels and dialogs. Pass to PreferencesInterface.textFontSize
| Name | Description |
|---|---|
| LARGE | Large size. |
| MEDIUM | Medium size. |
| SMALL | Small size. |
| TINY | Tiny size. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The type of colors to be included the color table regardless of their usage
| Name | Description |
|---|---|
| BLACKANDWHITE | Pure black and pure white |
| NONE | None |
| PRIMARIES | Red, green, blue, cyan, magenta, yellow, black, and white. |
| WEB | The 216 web-safe colors |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">27.2</span>
The generative upscale model to use for AI-powered upscaling.
Pass to Document.generativeUpscale()
| Name | Description |
|---|---|
| FIREFLY | Adobe Firefly generative upscale model |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
Geometric options for shapes, such as the iris shape in the Lens Blur filter. Pass to Layer.applyLensBlur().
| Name | Description |
|---|---|
| HEPTAGON | - |
| HEXAGON | - |
| OCTAGON | - |
| PENTAGON | - |
| SQUARE | - |
| TRIANGLE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The line style for nonprinting grids displayed over images. Pass to PreferencesGuidesGridsAndSlices.gridStyle
| Name | Description |
|---|---|
| DASHED | - |
| DOTTED | - |
| SOLID | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The size of grid squares. Pass to PreferencesTransparencyAndGamut.gridSize
| Name | Description |
|---|---|
| LARGE | Large grid squares. |
| MEDIUM | Medium grid squares. |
| NONE | No grid is displayed. |
| SMALL | Small grid squares. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The line style for nonprinting guides displayed over images. Pass to PreferencesGuidesGridsAndSlices.guideStyle
| Name | Description |
|---|---|
| DASHED | - |
| SOLID | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The rendering intent to use when converting from one color space to another with Document.convertProfile
| Name | Description |
|---|---|
| ABSOLUTECOLORIMETRIC | - |
| PERCEPTUAL | - |
| RELATIVECOLORIMETRIC | - |
| SATURATION | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The method to use for bitmap interpolation.
Pass to
| Name | Description |
|---|---|
| AUTOMATIC | Choose best bicubic option automatically |
| BICUBIC | Bicubic interpolation |
| BICUBICSHARPER | Apply a sharpening mask |
| BICUBICSMOOTHER | Apply a smoothing mask |
| BILINEAR | Bilinear interpolate |
| NEARESTNEIGHBOR | Determine value based on nearest neighbor |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The option with which to save a JPEG file.
| Name | Description |
|---|---|
| OPTIMIZEDBASELINE | Optimized color and a slightly reduced file size. |
| PROGRESSIVE | Displays a series of increasing detailed scans as the image downloads. |
| STANDARDBASELINE | Format recognized by most web browsers. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The placement of paragraph text within the bounding box. Used in ParagraphStyle.justification
| Name | Description |
|---|---|
| CENTER | - |
| CENTERJUSTIFIED | - |
| FULLYJUSTIFIED | - |
| LEFT | - |
| LEFTJUSTIFIED | - |
| RIGHT | - |
| RIGHTJUSTIFIED | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The width of kashida (tatweel) character Used in ParagraphStyle.kashidaWidth
| Name | Description |
|---|---|
| LONG | - |
| MEDIUM | - |
| NONE | - |
| SHORT | - |
| STYLISTIC | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
Line breaking rules in Japanese text Used in ParagraphStyle.kinsoku
| Name | Description |
|---|---|
| JISMAXIMUM | - |
| JISWEAK | - |
| NONE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Options for layer list label colors
| Name | Description |
|---|---|
| BLUE | - |
| GRAY | - |
| GREEN | - |
| NONE | - |
| ORANGE | - |
| RED | - |
| VIOLET | - |
| YELLOW | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The language to use for text. Used in CharacterStyle.language
| Name | Description |
|---|---|
| ARABIC | - |
| BANGLAINDIA | - |
| BRAZILLIANPORTUGUESE | - |
| BULGARIAN | - |
| BURMESE | - |
| CANADIANFRENCH | - |
| CATALAN | - |
| CHINESE | - |
| CROATIAN | - |
| CZECH | - |
| DANISH | - |
| DUTCH | - |
| ENGLISHCANADA | - |
| ENGLISHUK | - |
| ENGLISHUSA | - |
| ESTONIAN | - |
| FINNISH | - |
| FRENCH | - |
| GERMAN | - |
| GERMAN1996 | - |
| GREEK | - |
| GUJARATI | - |
| HEBREW | - |
| HINDI | - |
| HUNGARIAN | - |
| ICELANDIC | - |
| INDONESIAN | - |
| ITALIAN | - |
| JAPANESE | - |
| KANNADA | - |
| KHMER | - |
| LAO | - |
| LATVIAN | - |
| LITHUANIAN | - |
| MALAYALAM | - |
| MARATHI | - |
| NORWEGIAN | - |
| NYNORSKNORWEGIAN | - |
| ODIA | - |
| OLDDUTCH | - |
| OLDGERMAN | - |
| OLDSWISSGERMAN | - |
| POLISH | - |
| PORTUGUESE | - |
| PUNJABI | - |
| ROMANIAN | - |
| RUSSIAN | - |
| SERBIAN | - |
| SINHALESE | - |
| SLOVAK | - |
| SLOVENIAN | - |
| SPANISH | - |
| SWEDISH | - |
| SWISSGERMAN | - |
| TAMIL | - |
| TELUGU | - |
| THAI | - |
| TURKISH | - |
| UKRAINIAN | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Kinds of document layers, including adjustment layers. Grain and Clarity are new in Photoshop 27.4.
| Name | Description |
|---|---|
| BLACKANDWHITE | Black & White adjustment |
| BRIGHTNESSCONTRAST | Brightness/Contrast adjustment |
| CHANNELMIXER | Channel Mixer adjustment |
| CLARITY | Clarity and dehaze adjustment |
| COLORBALANCE | Color Balance adjustment |
| COLORLOOKUP | Color Lookup adjustment |
| CURVES | Curves adjustment |
| EXPOSURE | Exposure adjustment |
| GRADIENTFILL | Gradient |
| GRADIENTMAP | Gradient Map adjustment |
| GRAIN | Grain adjustment |
| GROUP | Layer group |
| HUESATURATION | Hue/Saturation adjustment |
| INVERSION | Invert adjustment |
| LAYER3D | 3D |
| LEVELS | Levels adjustment |
| NORMAL | Raster (pixel) |
| PATTERNFILL | Pattern |
| PHOTOFILTER | Photo Filter adjustment |
| POSTERIZE | Posterize adjustment |
| SELECTIVECOLOR | Selective Color adjustment |
| SMARTOBJECT | Smart object |
| SOLIDFILL | Solid Color |
| TEXT | Text |
| THRESHOLD | Threshold adjustment |
| VIBRANCE | Color and vibrance adjustment |
| VIDEO | Video |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The type of Lens to use. Pass to Layer.applyLensFlare().
| Name | Description |
|---|---|
| MOVIEPRIME | - |
| PRIME105 | - |
| PRIME35 | - |
| ZOOMLENS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The color to use to fill anti-aliased edges adjacent to transparent areas of the image. When transparency is turned off for an image, the matte color is applied to transparent areas.
| Name | Description |
|---|---|
| BACKGROUND | - |
| BLACK | - |
| FOREGROUND | - |
| NETSCAPE | - |
| SEMIGRAY | - |
| WHITE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The permission state for queries. Pass to PreferencesFileHandling.maximizeCompatibility
| Name | Description |
|---|---|
| ALWAYS | Always maximize compatibility. |
| ASK | Always ask about maximize compatibility. |
| NEVER | Never ask about maximize compatibility. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
Digit type to use in text (Middle Eastern features). Used in CharacterStyle.middleEasternDigitsType
| Name | Description |
|---|---|
| FARSI | - |
| HINDI | - |
| LTRARABIC | - |
| RTLARABIC | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
Text flow direction (Middle Eastern features). Used in CharacterStyle.middleEasternTextDirection
| Name | Description |
|---|---|
| DEFAULT | - |
| LEFTTORIGHT | - |
| RIGHTTOLEFT | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
Spacing between punctuation, symbols, numbers, and other character classes in Japanese text Used in ParagraphStyle.mojikumi
| Name | Description |
|---|---|
| NONE | - |
| SET1 | - |
| SET2 | - |
| SET3 | - |
| SET4 | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Color Modes available for new document
| Name | Description |
|---|---|
| BITMAP | - |
| CMYK | - |
| GRAYSCALE | - |
| LAB | - |
| RGB | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
Distribution model to use when applying an Add Noise filter. Pass to Layer.applyAddNoise.
| Name | Description |
|---|---|
| GAUSSIAN | - |
| UNIFORM | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
Method to use to fill the empty space left by offsetting an image or selection. Pass to Layer.applyOffset()
| Name | Description |
|---|---|
| REPEATEDGEPIXELS | - |
| SETTOBACKGROUND | - |
| WRAPAROUND | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The target operating system in BMPSaveOptions.
| Name | Description |
|---|---|
| OS2 | - |
| WINDOWS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
Used in multiple places to represent orientation e.g., TextItem.orientation
| Name | Description |
|---|---|
| HORIZONTAL | - |
| VERTICAL | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The style of the cursors for the following tools: Marquee, Lasso, Polygonal Lasso, Magic Wand, Crop, Slice, Patch Eyedropper, Pen, Gradient, Line, Paint Bucket, Magnetic Lasso, Magnetic Pen, Freeform Pen, Measure, and Color Sampler. Pass to PreferencesCursors.otherCursors
| Name | Description |
|---|---|
| PRECISE | Use crosshair cursors for tools. |
| STANDARD | Use small iconic cursors for tools. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
Compression method for saving a PNG file
| Name | Description |
|---|---|
| MODERATE | - |
| QUICK | - |
| THOROUGH | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The style of the cursors for the following tools: Eraser, Pencil, Paintbrush, Healing Brush, Rubber Stamp, Pattern Stamp, Smudge, Blur, Sharpen, Dodge, Burn, Sponge. Pass to PreferencesCursors.paintingCursors
| Name | Description |
|---|---|
| BRUSHSIZE | Displays cursors as brush shapes representing the size of the current brush where boundaries have 50% brush opacity |
| FULLSIZE | Use the full size of the brush regardless of brush opacity |
| PRECISE | Use crosshair cursors when painting. |
| STANDARD | Use small iconic cursors when painting. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The palette type to use
| Name | Description |
|---|---|
| EXACT | - |
| LOCALADAPTIVE | - |
| LOCALPERCEPTUAL | - |
| LOCALSELECTIVE | - |
| MACOSPALETTE | - |
| MASTERADAPTIVE | - |
| MASTERPERCEPTUAL | - |
| MASTERSELECTIVE | - |
| PREVIOUSPALETTE | - |
| UNIFORM | - |
| WEBPALETTE | - |
| WINDOWSPALETTE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The paragraph features to use in text. Used in ParagraphStyle.features
| Name | Description |
|---|---|
| DEFAULT | - |
| EASTASIAN | - |
| MIDDLEASTERN | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The paragraph layout to use in text. Used in ParagraphStyle.layoutMode
| Name | Description |
|---|---|
| LATINEASTASIAN | - |
| WORLDREADY | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The type of a PathItem
| Name | Description |
|---|---|
| CLIPPINGPATH | - |
| DUPLICATE | - |
| INTERPOLATE | - |
| NORMALPATH | - |
| TEXTMASK | - |
| VECTORMASK | - |
| WORKPATH | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>
The role a PathPoint plays in a PathItem
| Name | Description |
|---|---|
| CORNERPOINT | - |
| SMOOTHPOINT | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The point/pica size: either 72 or 72.27 points per inch. Pass to PreferencesUnitsAndRulers.pointSize
| Name | Description |
|---|---|
| POSTSCRIPT | 72 points per inch. |
| TRADITIONAL | 72.27 points per inch. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The kind of polar conversion. Pass to Layer.applyPolarCoordinates().
| Name | Description |
|---|---|
| POLARTORECTANGULAR | The distortion applied will take the input pixel grid as polar coordinates and convert them to rectangular coordinates. |
| RECTANGULARTOPOLAR | The distortion applied will take the input pixel grid as rectangular coordinates and convert them to polar coordinates. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
Favor the promotion of either corners or curves. Pass to Layer.applyMaximum() and Layer.applyMinimum().
| Name | Description |
|---|---|
| ROUNDNESS | - |
| SQUARENESS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The type of layer to get rasterized.
| Name | Description |
|---|---|
| ENTIRELAYER | - |
| FILLCONTENT | - |
| LAYERCLIPPINGPATH | - |
| LAYERSTYLE | - |
| LINKEDLAYERS | - |
| PLACED | - |
| SHAPE | - |
| TEXTCONTENTS | - |
| VECTORMASK | - |
| VIDEO | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The method to use for document interpolation
Pass to Document.resizeImage()
| Name | Description |
|---|---|
| AUTOMATIC | Choose best bicubic option automatically |
| BICUBIC | Bicubic interpolation |
| BICUBICSHARPER | Apply a sharpening mask |
| BICUBICSMOOTHER | Apply a smoothing mask |
| BILINEAR | Bilinear interpolate |
| DEEPUPSCALE | Using deep learning, predict what the picture will look like larger. |
| NEARESTNEIGHBOR | Determine value based on nearest neighbor |
| NONE | Changes image resolution value without affecting document dimension Currently unsupported |
| PRESERVEDETAILS | Attempt to preserve details by using machine learning |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The size of undulations. Pass to Layer.applyRipple().
| Name | Description |
|---|---|
| LARGE | - |
| MEDIUM | - |
| SMALL | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The measurement unit for ruler increments. Pass to PreferencesUnitsAndRulers.rulerUnits
| Name | Description |
|---|---|
| CENTIMETERS | - |
| INCHES | - |
| MILLIMETERS | - |
| PERCENT | - |
| PICAS | - |
| PIXELS | - |
| POINTS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
Sample size for the EyeDropper tool and ColorSampler instances.
| Name | Description |
|---|---|
| POINTSAMPLE | - |
| SAMPLE101X101 | - |
| SAMPLE11X11 | - |
| SAMPLE31X31 | - |
| SAMPLE3X3 | - |
| SAMPLE51X51 | - |
| SAMPLE5X5 | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
Options for logging the history items. Pass to PreferencesHistory.saveLogItems
| Name | Description |
|---|---|
| LOGFILE | Save history log in a text file. |
| LOGFILEANDMETADATA | Save history log in file metadata and a text file. |
| METADATA | Save history log in file metadata. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The type of save operation.
| Name | Description |
|---|---|
| SAVE | Saves the current document at the current format. |
| SAVEAS | Changes the format of document, changing the file. |
| SAVEASCOPY | Creates a copy of the document in the new format. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>
The policy for handling new changes upon closing a document.
| Name | Description |
|---|---|
| DONOTSAVECHANGES | Will close document without saving, discarding changes |
| PROMPTTOSAVECHANGES | Will ask the user if they'd like to save changes, blocking the script |
| SAVECHANGES | Will save all existing changes before closing, prompting if document is not saved yet |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The application's behavior regarding image previews. Pass to PreferencesFileHandling.imagePreviews
| Name | Description |
|---|---|
| ALWAYSSAVE | Always save the item with the file. |
| ASKWHENSAVING | Prompt the user whether to save the item with the file. |
| NEVERSAVE | Never save the item with the file. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>
The selection behavior when a selection already exists. Used in PathItem.makeSelection(), Selection.saveTo() and Selection.load()
| Name | Description |
|---|---|
| DIMINISH | Remove the selection from the already selected area |
| EXTEND | Add the selection to an already selected area |
| INTERSECT | Make the selection only the area where the new selection intersectes the already selected area |
| REPLACE | Replace the selected area |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>
How to combine the shapes if the destination path already has a selection.
Set for SubPathInfo.operation, stored in the resulting SubPathItem
| Name | Description |
|---|---|
| SHAPEADD | - |
| SHAPEINTERSECT | - |
| SHAPESUBTRACT | - |
| SHAPEXOR | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The method to use for smart blurring. Pass to Layer.applySmartBlur().
| Name | Description |
|---|---|
| EDGEONLY | - |
| NORMAL | - |
| OVERLAYEDGE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The smart blur quality. Pass to Layer.applySmartBlur().
| Name | Description |
|---|---|
| HIGH | - |
| LOW | - |
| MEDIUM | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The curve (or stretch shape) to use for the distortion. Pass to Layer.applySpherize().
| Name | Description |
|---|---|
| HORIZONTAL | - |
| NORMAL | - |
| VERTICAL | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The text strikethrough style to use in text. Used in CharacterStyle.strikeThrough
| Name | Description |
|---|---|
| STRIKEBOX | - |
| STRIKEHEIGHT | - |
| STRIKEOFF | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The capitalization style to use in text. Used in CharacterStyle.capitalization
| Name | Description |
|---|---|
| ALLCAPS | - |
| NORMAL | - |
| SMALLCAPS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The type of texture or glass surface image to load for a texturizer or glass filter. Pass to Layer.applyGlassEffect().
| Name | Description |
|---|---|
| BLOCKS | - |
| CANVAS | - |
| FROSTED | - |
| TINYLENS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>
The tool to use with PathItem.strokePath()
| Name | Description |
|---|---|
| ARTHISTORYBRUSH | - |
| BACKGROUNDERASER | - |
| BLUR | - |
| BRUSH | - |
| BURN | - |
| CLONESTAMP | - |
| COLORREPLACEMENTTOOL | - |
| DODGE | - |
| ERASER | - |
| HEALINGBRUSH | - |
| HISTORYBRUSH | - |
| PATTERNSTAMP | - |
| PENCIL | - |
| SHARPEN | - |
| SMUDGE | - |
| SPONGE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>
Type of pixels to trim around an image, passed to Document.trim.
| Name | Description |
|---|---|
| BOTTOMRIGHT | The color of the pixel in the bottom right corner of the image. |
| TOPLEFT | The color of the pixel in the top left right corner of the image. |
| TRANSPARENT | Fully transparent pixels. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
Options for changing user interface of Character and Paragraph panels. This option is not in Preferences dialog but instead it is located in: Main menu > Type > Language Options Pass to PreferencesType.showTextFeatures
| Name | Description |
|---|---|
| DEFAULT | - |
| EASTASIAN | - |
| MIDDLEEASTERN | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>
The measurement unit for type. Pass to PreferencesUnitsAndRulers.typeUnits
| Name | Description |
|---|---|
| MILLIMETERS | - |
| PIXELS | - |
| POINTS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
How to treat undistorted areas or areas left blank in an image to which a filter in the Distort category has been applied. Pass to Layer.applyDisplace(), Layer.applyShear(), Layer.applyWave()
| Name | Description |
|---|---|
| REPEATEDGEPIXELS | - |
| WRAPAROUND | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The underline style to use in text. Used in CharacterStyle.underline
| Name | Description |
|---|---|
| LEFTINVERTICAL | - |
| NONE | - |
| RIGHTINVERTICAL | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.4</span>
Valid Units for convertUnits method, used in Photoshop.convertUnits
| Name | Description |
|---|---|
| CM | - |
| INCHES | - |
| MM | - |
| PICAS | - |
| PIXELS | - |
| POINTS | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
The warp style to use with Text. Used in a WarpStyle.style
| Name | Description |
|---|---|
| ARC | - |
| ARCH | - |
| ARCLOWER | - |
| ARCUPPER | - |
| BULGE | - |
| FISH | - |
| FISHEYE | - |
| FLAG | - |
| INFLATE | - |
| NONE | - |
| RISE | - |
| SHELLLOWER | - |
| SHELLUPPER | - |
| SQUEEZE | - |
| TWIST | - |
| WAVE | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The type of wave. Pass to Layer.applyWave().
| Name | Description |
|---|---|
| SINE | - |
| SQUARE | - |
| TRIANGULAR | - |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>
The method of zigzagging. Pass to Layer.applyZigZag().
| Name | Description |
|---|---|
| AROUNDCENTER | - |
| OUTFROMCENTER | - |
| PONDRIPPLES | - |