本文介绍了Photoshop脚本:exportDocument的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的图像保存为透明的PNG并编写一个突然停止工作的脚本。我收到此错误消息:

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

docExportOptions = new ExportOptionsSaveForWeb

docExportOptions.format = SaveDocumentType.PNG //-24 //JPEG, COMPUSERVEGIF, PNG-8, BMP
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)

任何想法如何解决?或者将docRef保存为透明PNG的任何其他解决方案?

Any ideas how to fix that? Or any other solutions to save the docRef as a transparent PNG?

推荐答案

Phew。解决了^^

Phew. Solved ^^

该路径不存在,该错误似乎是一个标准错误。相当令人困惑......

The path didn't exist and that error seems to be a standard error. Pretty confusing...

这篇关于Photoshop脚本:exportDocument的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 03:56
查看更多