I'm saving a TGA while specifying to save alpha channel, but when I open the TGA the alpha channel is not there. Anyone knows why it's not working and how to make it work?
I'm using Photoshop CS5.1 and here's my code:
Code: Select all
var doc = app.activeDocument;
var tgaFile = File(rawPath);
var tgaSaveOptions = new TargaSaveOptions();
// Save alpha channel
tgaSaveOptions.alphaChannels = true;
tgaSaveOptions.rleCompression = false
doc.saveAs(tgaFile, tgaSaveOptions, true, Extension.LOWERCASE);