1. 打开PS 「 文件」——「 文件简介」——「原始数据 」当中,查看该文档是否有过多没必要的信息。图中展现的原始数据当中,有上千条 <rdf:li> </rdf:li> 信息。
2. 新建一个txt文件,将下面代码复制进去,然后将文件保存为jsx文件格式
function deleteDocumentAncestorsMetadata() {
whatApp = String(app.name);//String version of the app name
if(whatApp.search("Photoshop") > 0) { //Check for photoshop specifically, or this will cause errors
//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 ancestors
deleteDocumentAncestorsMetadata();
3. 用PS打开文件比较大的PSD文档,「 文件」——「 脚本」——「 浏览...」选择刚刚保存的 Jsx 格式文件即可解决
百度网盘下载:链接: https://pan.baidu.com/s/16WEXWSqSz7K4Jub9HRwAzw 提取码: 835j