I’ve created an action to shrink my images
with fit image
the action was then converted with occulist but it doesn’t give any result.
because it does not work?.
const batchPlay = require("photoshop").action.batchPlay;
const result = await batchPlay(
[
{
_obj: "3caa3434-cb67-11d1-bc43-0060b0a13dc4",
message: "Settings for the Fit Image action",
height: {
_unit: "pixelsUnit",
_value: 2000
},
width: {
_unit: "pixelsUnit",
_value: 2000
},
limit: true,
rmethod: "bicubicSharper",
_options: {
dialogOptions: "dontDisplay"
}
}
],{
synchronousExecution: false,
modalBehavior: "fail"
});