You are reading a single comment by @±ln(x) and its replies. Click here to read the full conversation.
  • I think this is what you're trying to do

    app.preferences.rulerUnits = Units.PIXELS;
    var doc = activeDocument;
    var Orientation = parseFloat(doc.height / doc.width);
    
    if (Orientation >= 1) {
        var wFactorP = parseFloat(7016 / doc.width);
        var hFactorP = parseFloat(9933 / doc.height);
    
        if (wFactorP > hFactorP) {
            doc.resizeImage(70­16, undefined, undefined, ResampleMethod.BI­CUBIC);
        }
        else {
            doc.resizeImage(undefined, 9933, unde­fined, ResampleMethod.BICUBIC)
        }
    }
    
    else if (Orientation < 1) {
        var wFactorL = parseFloat(9933 / doc.width)
        var hFactorL = parseFloat(7016 / doc.height);
    
        if (wFactorL > hFactorL) {
            doc.resizeImage(99­33, undefined, undefined, ResampleMethod.BI­CUBIC)
        }
        else {
            doc.resizeImage(undefined, 7016, unde­fined, ResampleMethod.BICUBIC)
        }
    }
    
    
About

Avatar for ±ln(x) @±ln(x) started