multiple images batch resize and rename
ok so im new to javascript and just know how to navigate through it. My task is to upload many pics to the web in diferent squared dimentions(50,80,100,150,250,400,600) So what i need to do is take the master (which I squared already) and output all those file sizes and with corisponding file extention name ( 150px pic has file name "originalname_150.png) I can do this in batch with actions but have to do this with each file size. I need it to do it to all files in folder then make sub folder with all sizes listed.
I took this and edited it, probally off
// size
var fWidth = 600;
var fHeight = 600;
// our web export options
var options = new ExportOptionsSaveForWeb(); <------ says it dosnt have constructor in extendscript toolkit
options.quality = 70;
options.format = SaveDocumentType.PNG;
var newName = doc.name+ '_400' + '.png';
doc.exportDocument(File(doc.path+'/'+newName));
can i just make a one for one size that resizes and names and saves, then copy paste it below with new size, would that work?
anything will help guys
