ApplyImageOptions

An object literal can be constructed with the following properties and passed to Layer.applyImage. As a type, ApplyImageOptions can be used in Typescript development.

const options = {
    source: {
        document: require('photoshop').app.documents[0],
        layer: require('photoshop').app.documents[0].layers[1],
        channel: require('photoshop').app.documents[0].channels[2],
    },
    blending: require('photoshop').constants.ApplyImageBlendMode.SCREEN,
};
await require('photoshop').app.activeDocument.layers[0].applyImage(options);
Name
Type
Default
Range
Min Version
Description
blending
ApplyImageBlendMode
MULTIPLY
-
24.5
The blend mode used to apply the source to the active layer.
mask
ApplyImageSource
-
-
24.5
The Mask reference to be used in the Apply Image operation.
opacity
number
100
0..100
24.5
The opacity used while applying the source to the active layer.
preserveTransparency
boolean
false
-
24.5
Whether to preserve the original transparency of the active layer.
source
ApplyImageSource
-
-
24.5
The source reference to be used in the Apply Image operation.