Multiple artboards to multiple jpeg through script
- February 4, 2021
- 3 replies
- 2310 views
Hi,
I have the many artboards in single Photoshop document, so i need to export each art board as single JPEG file through script. I tried in some way but i got all the artboards in single jpeg instead different jpeg.
Please guide me how to export activeLayer (or all layers) as JPEG through script. We have the manual option in pilot menu of layer (screen shot attached).
for(var x=0;x<allLayers.length;x++) {
doc.activeLayer = allLayers[x];
var docExportOptions = new ExportOptionsSaveForWeb;
var destFile = new File("~/Desktop/" + allLayers[x].name + ".jpg");
app.activeDocument.saveAs (destFile, docExportOptions, true, Extension.LOWERCASE);
}
I need to fix the image size, color space and, quality in export options, so please guide me on this.
Thanks in Advance...
Asuvath
