Code: Select all
function step22(enabled, withDialog) {
if (enabled != undefined && !enabled)
return;
var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
var desc1 = new ActionDescriptor();
desc1.putUnitDouble(cTID('Wdth'), cTID('#Pxl'), 413); //change 413 mm
desc1.putUnitDouble(cTID('Rslt'), cTID('#Rsl'), 320); //change 320 mm
desc1.putBoolean(sTID("scaleStyles"), true);
desc1.putBoolean(cTID('CnsP'), true);
desc1.putEnumerated(cTID('Intr'), cTID('Intp'), sTID("automaticInterpolation"));
executeAction(sTID('imageSize'), desc1, dialogMode);
};
// How to change the pixels to mm units
320px-320mm