I have some batchPlay which resizes an image to 2000px but I want it to resize based on the longest side.
Rather than have 2 batchPlays can I use one but change out one of the properties with a variable.
//Resize to 2000px (can we change "height" to a variable ?
"_obj": "imageSize",
"constrainProportions": true,
"height": {
"_unit": "pixelsUnit",
"_value": 2000
tried this but it didn’t work
if (app.activeDocument.width > app.activeDocument.height){
let x = "width";
}
"_obj": "imageSize",
"constrainProportions": true,
x: {
"_unit": "pixelsUnit",
"_value": 2000