Photoshop 脚本:exportDocument
我想将图像保存为透明 PNG 并编写了一个突然停止工作的脚本。我收到此错误消息:
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 吗?
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)
Any ideas how to fix that? Or any other solutions to save the docRef as a transparent PNG?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
唷。已解决 ^^
路径不存在,该错误似乎是标准错误。相当混乱...
Phew. Solved ^^
The path didn't exist and that error seems to be a standard error. Pretty confusing...
文件夹路径是我从Windows资源管理器复制文件夹路径的问题
看起来像
并将其粘贴到地址栏或互联网浏览器中按 Enter 键
我明白了
我复制了
并将其用于文件夹路径并且它刚刚工作
The folder path was the problem i copied the folder path from windows explorer
it looks like
and pasted it in adress bar or the internet broser pressed enter
i got this
i copied
and used it for folder path and It just worked