How To Save image width and height with Photoshop Script
Hello im using Photoshop Scripting to edit layers, and Im trying to figure out how to set the width, and height of the saved image. Im trying to set a width and height of the saved image using new JPEGSaveOptions(); Can anyone assist me with this? My code snippet is below
function saveJpeg(name)
{
var doc = app.activeDocument;
var file = new File(doc.path + '/gen/' +name +'.jpg' );
var opts = new JPEGSaveOptions();
opts.quality = 10;
doc.saveAs(file,opts,true, Extension.LOWERCASE);
}
