ps导出jpg图片好几十M,远远超过应该大小

2025-05-10 00:09:50

1、新建一文本文档。

2、把以下代码复制到建立的文本文档并保存function 蟠校盯昂deleteDocumentAncestorsMet锾攒揉敫adata() { //String version of the app name whatApp = String(app.name); // Check for photoshop specifically, or this will cause errors if(whatApp.search("Photoshop") > 0) { // Function Scrubs Document Ancestors from Files if(!documents.length) { alert("There are no open documents. Please open a file to run this script.") return; } if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript"); var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData); // Begone foul Document Ancestors! xmp.deleteProperty(XMPConst.NS_PHOTOSHOP, "DocumentAncestors"); app.activeDocument.xmpMetadata.rawData = xmp.serialize(); }}// Now run the function to remove the document ancestorsdeleteDocumentAncestorsMetadata();

3、更改文本文档后缀名为.jsx

4、打开ps文件(导出jpg很大的文件),执行‘文件’——‘脚本’——‘浏览’命令。选中jsx文件。点击确定即可!!

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:89
  • 阅读量:69
  • 阅读量:28
  • 阅读量:74
  • 阅读量:23
  • 猜你喜欢