// Resize Even // checks the canvas and adds 1px to the height is the file isn't even in height. // used for making sure the images @2x are even so that the low res obtained by halving them is perfect // var savedRuler = app.preferences.rulerUnits; app.preferences.rulerUnits = Units.PIXELS; var w = app.activeDocument.width; var h = app.activeDocument.height; if(h % 2 != 0) app.activeDocument.resizeCanvas (w, h+1, AnchorPosition.TOPCENTER); app.preferences.rulerUnits = savedRuler;