Answered
Javascript to test an image size and change size if needed
I'm trying write a script to test an open image to see if its below 1000px and if so res it up to 1000px, and also test if its above 10,000px and res it down to 10,000px. I think I would set this up as and else if statement but this does'nt work any ideas where I'm going wrong?
if(app.activeDocument.width.value<1000){e
app.activeDocument.resizeImage(
new UnitValue(1000, "px"),
currentHeight,
currentResolution,
ResampleMethod.BILINEAR);
}else if (app.activeDocument.width.value>10000){
app.activeDocument.resizeImage(
new UnitValue(10000, "px"),
currentHeight,
currentResolution,
ResampleMethod.BILINEAR);
}else {}
