def _exportTIF(self, filePath): activeDocument = self.psApp.Application.ActiveDocument saveOPT = Dispatch("Photoshop.TiffSaveOptions") saveOPT.AlphaChannels = True saveOPT.EmbedColorProfile = True saveOPT.Layers = False activeDocument.SaveAs(filePath, saveOPT, True) return True
def _exportTGA(self, filePath): activeDocument = self.psApp.Application.ActiveDocument saveOPT = Dispatch("Photoshop.TargaSaveOptions") saveOPT.Resolution = 32 saveOPT.AlphaChannels = True saveOPT.RLECompression = True activeDocument.SaveAs(filePath, saveOPT, True) return True
def _exportPSD(self, filePath): activeDocument = self.psApp.Application.ActiveDocument saveOPT = Dispatch("Photoshop.PhotoshopSaveOptions") saveOPT.AlphaChannels = True saveOPT.Annotations = True saveOPT.Layers = True saveOPT.SpotColors = True activeDocument.SaveAs(filePath, saveOPT, True) return True