Question
Preserve Transparency when saving to PNG
Hi all,
I am running a script on photoshop that pulls in png files as layers and saves as a png. Problem is the transparency of the layers is not being preserved and we are seeing white corners on our rounded images.
I urgently need some help as we have loads to generate and a tight timeframe!
Code:
```
var saveLocation = File("/Users/user/Dropbox/Mad Cat Militia/__GENERATED CATS__/cat.png");
var opts;
opts = new ExportOptionsSaveForWeb();
opts.format = SaveDocumentType.PNG;
opts.PNG8 = false;
opts.quality = 100;
app.activeDocument.exportDocument(saveLocation, ExportType.SAVEFORWEB, opts);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
```
Thankyou!!
