Constants

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
);

Enumerations

AnchorPosition

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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
-

AntiAlias

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> 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
-

ApplyImageBlendMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>

<br/> 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
-

ApplyImageChannel

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>

<br/> Special channels used in Layer.applyImage.

Name
Description
CMYK
-
LAB
-
RGB
-
SELECTION
-
TRANSPARENCY
-

ApplyImageLayer

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>

<br/> Use merged layers as a source in Layer.applyImage.

Name
Description
MERGED
-

AutoKernType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The type of kerning to use for characters. Used in CharacterStyle.autoKerning

Name
Description
MANUAL
-
METRICS
-
OPTICAL
-

BMPDepthType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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
-

Baseline

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The baseline style to use in text. Used in CharacterStyle.baseline

Name
Description
NORMAL
-
SUBSCRIPT
-
SUPERSCRIPT
-

BitmapConversionType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> Specifies the quality of an image you are converting to bitmap mode. Used in BitmapConversionOptions

Name
Description
CUSTOMPATTERN
-
DIFFUSIONDITHER
-
HALFTHRESHOLD
-
HALFTONESCREEN
-
PATTERNDITHER
-

BitmapHalfToneType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> Specifies the shape of the dots (ink deposits) in the halftone screen. Used in BitmapConversionOptions

Name
Description
CROSS
-
DIAMOND
-
ELLIPSE
-
LINE
-
ROUND
-
SQUARE
-

BitsPerChannelType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>

<br/> The number of bits per color channel.

Name
Description
EIGHT
-
ONE
-
SIXTEEN
-
THIRTYTWO
-

BlendMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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
-

CalculationsBlendMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>

<br/> 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
-

CalculationsChannel

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>

<br/> Special channels used in Document.calculations.

Name
Description
GRAY
-
SELECTION
-
TRANSPARENCY
-

CalculationsLayer

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>

<br/> Use merged layers as a source in [Document.calculations]].

Name
Description
MERGED
-

CalculationsResult

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.5</span>

<br/> 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
-

ChangeMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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
-

ChannelType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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

CharacterAlignment

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The character alignment to use in text. Used in CharacterStyle.characterAlignment

Name
Description
EMBOXBOTTOMLEFT
-
EMBOXCENTER
-
EMBOXTOPRIGHT
-
ICFBOTTOMLEFT
-
ICFBOXTOPRIGHT
-
ROMAN
-

ColorBlendMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>

<br/> 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
-

ColorModel

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> The color model representing the current color space of a SolidColor object.

Name
Description
CMYK
-
GRAYSCALE
-
HSB
-
LAB
-
NONE
-
RGB
-

ColorPicker

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

ColorProfileType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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

CreateFields

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The method used for creating fields. Pass to Layer.applyDeInterlace.

Name
Description
DUPLICATION
-
INTERPOLATION
-

DepthMapSource

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The source to use for the depth map. Pass to Layer.applyLensBlur().

Name
Description
IMAGEHIGHLIGHT
-
LAYERMASK
-
NONE
-
TRANSPARENCYCHANNEL
-

DialogModes

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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

Direction

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> Used in multiple places to represent orientation.

Orientation of a guide in Guide.direction

Name
Description
HORIZONTAL
-
VERTICAL
-

DisplacementMapType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> 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
-

Dither

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> The type of dithering

Name
Description
DIFFUSION
-
NOISE
-
NONE
-
PATTERN
-

DocumentFill

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> Fill methods available for the new document background

Name
Description
BACKGROUNDCOLOR
-
BLACK
-
COLOR
-
TRANSPARENT
-
WHITE
-

DocumentMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> Color mode of an open document. See also Document.mode and Document.changeMode

Name
Description
BITMAP
-
CMYK
-
DUOTONE
-
GRAYSCALE
-
INDEXEDCOLOR
-
LAB
-
MULTICHANNEL
-
RGB
-

EditLogItemsType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

ElementPlacement

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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

EliminateFields

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The type of field to eliminate. Pass to Layer.applyDeInterlace.

Name
Description
EVENFIELDS
-
ODDFIELDS
-

FlipAxis

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>

<br/> Axis (or both) to flip a layer on. Pass to Layer.flip().

Name
Description
BOTH
-
HORIZONTAL
-
VERTICAL
-

FontSize

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> Font size in panels and dialogs. Pass to PreferencesInterface.textFontSize

Name
Description
LARGE
Large size.
MEDIUM
Medium size.
SMALL
Small size.
TINY
Tiny size.

ForcedColors

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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

GenerativeUpscaleModel

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">27.2</span>

<br/> The generative upscale model to use for AI-powered upscaling.

Pass to Document.generativeUpscale()

Name
Description
FIREFLY
Adobe Firefly generative upscale model

Geometry

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> 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
-

GridLineStyle

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> The line style for nonprinting grids displayed over images. Pass to PreferencesGuidesGridsAndSlices.gridStyle

Name
Description
DASHED
-
DOTTED
-
SOLID
-

GridSize

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

GuideLineStyle

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> The line style for nonprinting guides displayed over images. Pass to PreferencesGuidesGridsAndSlices.guideStyle

Name
Description
DASHED
-
SOLID
-

Intent

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> The rendering intent to use when converting from one color space to another with Document.convertProfile

Name
Description
ABSOLUTECOLORIMETRIC
-
PERCEPTUAL
-
RELATIVECOLORIMETRIC
-
SATURATION
-

InterpolationMethod

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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

JPEGFormatOptions

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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.

Justification

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The placement of paragraph text within the bounding box. Used in ParagraphStyle.justification

Name
Description
CENTER
-
CENTERJUSTIFIED
-
FULLYJUSTIFIED
-
LEFT
-
LEFTJUSTIFIED
-
RIGHT
-
RIGHTJUSTIFIED
-

KashidaWidthType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The width of kashida (tatweel) character Used in ParagraphStyle.kashidaWidth

Name
Description
LONG
-
MEDIUM
-
NONE
-
SHORT
-
STYLISTIC
-

Kinsoku

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> Line breaking rules in Japanese text Used in ParagraphStyle.kinsoku

Name
Description
JISMAXIMUM
-
JISWEAK
-
NONE
-

LabelColors

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> Options for layer list label colors

Name
Description
BLUE
-
GRAY
-
GREEN
-
NONE
-
ORANGE
-
RED
-
VIOLET
-
YELLOW
-

Language

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> 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
-

LayerKind

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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

LensType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The type of Lens to use. Pass to Layer.applyLensFlare().

Name
Description
MOVIEPRIME
-
PRIME105
-
PRIME35
-
ZOOMLENS
-

MatteColor

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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
-

MaximizeCompatibility

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

MiddleEasternDigitsType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> Digit type to use in text (Middle Eastern features). Used in CharacterStyle.middleEasternDigitsType

Name
Description
FARSI
-
HINDI
-
LTRARABIC
-
RTLARABIC
-

MiddleEasternTextDirection

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> Text flow direction (Middle Eastern features). Used in CharacterStyle.middleEasternTextDirection

Name
Description
DEFAULT
-
LEFTTORIGHT
-
RIGHTTOLEFT
-

Mojikumi

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> Spacing between punctuation, symbols, numbers, and other character classes in Japanese text Used in ParagraphStyle.mojikumi

Name
Description
NONE
-
SET1
-
SET2
-
SET3
-
SET4
-

NewDocumentMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> Color Modes available for new document

Name
Description
BITMAP
-
CMYK
-
GRAYSCALE
-
LAB
-
RGB
-

NoiseDistribution

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> Distribution model to use when applying an Add Noise filter. Pass to Layer.applyAddNoise.

Name
Description
GAUSSIAN
-
UNIFORM
-

OffsetUndefinedAreas

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> Method to use to fill the empty space left by offsetting an image or selection. Pass to Layer.applyOffset()

Name
Description
REPEATEDGEPIXELS
-
SETTOBACKGROUND
-
WRAPAROUND
-

OperatingSystem

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> The target operating system in BMPSaveOptions.

Name
Description
OS2
-
WINDOWS
-

Orientation

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> Used in multiple places to represent orientation e.g., TextItem.orientation

Name
Description
HORIZONTAL
-
VERTICAL
-

OtherCursors

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

PNGMethod

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> Compression method for saving a PNG file

Name
Description
MODERATE
-
QUICK
-
THOROUGH
-

PaintingCursors

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

Palette

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> The palette type to use

Name
Description
EXACT
-
LOCALADAPTIVE
-
LOCALPERCEPTUAL
-
LOCALSELECTIVE
-
MACOSPALETTE
-
MASTERADAPTIVE
-
MASTERPERCEPTUAL
-
MASTERSELECTIVE
-
PREVIOUSPALETTE
-
UNIFORM
-
WEBPALETTE
-
WINDOWSPALETTE
-

ParagraphFeatures

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The paragraph features to use in text. Used in ParagraphStyle.features

Name
Description
DEFAULT
-
EASTASIAN
-
MIDDLEASTERN
-

ParagraphLayout

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The paragraph layout to use in text. Used in ParagraphStyle.layoutMode

Name
Description
LATINEASTASIAN
-
WORLDREADY
-

PathKind

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The type of a PathItem

Name
Description
CLIPPINGPATH
-
DUPLICATE
-
INTERPOLATE
-
NORMALPATH
-
TEXTMASK
-
VECTORMASK
-
WORKPATH
-

PointKind

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>

<br/> The role a PathPoint plays in a PathItem

Name
Description
CORNERPOINT
-
SMOOTHPOINT
-

PointType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

PolarConversionType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> 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.

PreserveShape

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> Favor the promotion of either corners or curves. Pass to Layer.applyMaximum() and Layer.applyMinimum().

Name
Description
ROUNDNESS
-
SQUARENESS
-

RasterizeType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> The type of layer to get rasterized.

Name
Description
ENTIRELAYER
-
FILLCONTENT
-
LAYERCLIPPINGPATH
-
LAYERSTYLE
-
LINKEDLAYERS
-
PLACED
-
SHAPE
-
TEXTCONTENTS
-
VECTORMASK
-
VIDEO
-

ResampleMethod

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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

RippleSize

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The size of undulations. Pass to Layer.applyRipple().

Name
Description
LARGE
-
MEDIUM
-
SMALL
-

RulerUnits

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> The measurement unit for ruler increments. Pass to PreferencesUnitsAndRulers.rulerUnits

Name
Description
CENTIMETERS
-
INCHES
-
MILLIMETERS
-
PERCENT
-
PICAS
-
PIXELS
-
POINTS
-

SampleSize

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> Sample size for the EyeDropper tool and ColorSampler instances.

Name
Description
POINTSAMPLE
-
SAMPLE101X101
-
SAMPLE11X11
-
SAMPLE31X31
-
SAMPLE3X3
-
SAMPLE51X51
-
SAMPLE5X5
-

SaveLogItemsType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

SaveMethod

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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.

SaveOptions

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">22.5</span>

<br/> 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

SavePreview

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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.

SelectionType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>

<br/> 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

ShapeOperation

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>

<br/> 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
-

SmartBlurMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The method to use for smart blurring. Pass to Layer.applySmartBlur().

Name
Description
EDGEONLY
-
NORMAL
-
OVERLAYEDGE
-

SmartBlurQuality

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The smart blur quality. Pass to Layer.applySmartBlur().

Name
Description
HIGH
-
LOW
-
MEDIUM
-

SpherizeMode

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The curve (or stretch shape) to use for the distortion. Pass to Layer.applySpherize().

Name
Description
HORIZONTAL
-
NORMAL
-
VERTICAL
-

StrikeThrough

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The text strikethrough style to use in text. Used in CharacterStyle.strikeThrough

Name
Description
STRIKEBOX
-
STRIKEHEIGHT
-
STRIKEOFF
-

TextCase

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The capitalization style to use in text. Used in CharacterStyle.capitalization

Name
Description
ALLCAPS
-
NORMAL
-
SMALLCAPS
-

TextureType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> 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
-

ToolType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.3</span>

<br/> 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
-

TrimType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>

<br/> 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.

TypeInterfaceFeatures

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> 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
-

TypeUnits

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.0</span>

<br/> The measurement unit for type. Pass to PreferencesUnitsAndRulers.typeUnits

Name
Description
MILLIMETERS
-
PIXELS
-
POINTS
-

UndefinedAreas

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> 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
-

Underline

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> The underline style to use in text. Used in CharacterStyle.underline

Name
Description
LEFTINVERTICAL
-
NONE
-
RIGHTINVERTICAL
-

Units

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.4</span>

<br/> Valid Units for convertUnits method, used in Photoshop.convertUnits

Name
Description
CM
-
INCHES
-
MM
-
PICAS
-
PIXELS
-
POINTS
-

WarpStyle

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> 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
-

WaveType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The type of wave. Pass to Layer.applyWave().

Name
Description
SINE
-
SQUARE
-
TRIANGULAR
-

ZigZagType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.5</span>

<br/> The method of zigzagging. Pass to Layer.applyZigZag().

Name
Description
AROUNDCENTER
-
OUTFROMCENTER
-
PONDRIPPLES
-