I want to save my image as transparent PNG and wrote a script that suddenly stopped working. I get this error message:

docExportOptions = new ExportOptionsSaveForWeb
docExportOptions.format = SaveDocumentType.PNG
docExportOptions.transparency = true
docExportOptions.blur = 0.0
docExportOptions.includeProfile = false
docExportOptions.interlaced = false
docExportOptions.optimized = true
docExportOptions.quality = 100
docExportOptions.PNG8 = false
docRef.exportDocument (theFile,ExportType.SAVEFORWEB,docExportOptions)
Any ideas how to fix this? Or any other solutions to save docRef as transparent PNG?
source
share