PSD文件明明没什么图层,却又几个G大

2025-10-06 19:28:42

1、你可以在「 文件」——「 文件简介」——「原始数据 」当中,查看该文档是否有过多没必要的信息。图中展现的原始数据当中,有上千条 <rdf:li> </rdf:li> 信息。这些正是拖慢我们保存文档速度与文档「 膨胀」的元凶。

PSD文件明明没什么图层,却又几个G大

2、将下面这段代码复制粘贴到文本文档中,另存为 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(); 

PSD文件明明没什么图层,却又几个G大

3、用PS打开文件比较大的PSD文档,「 文件」——「 脚本」——「 浏览...」选择刚刚保存的 Jsx 格式文件即可解决。

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