多语言展示
当前在线:1259今日阅读:167今日分享:27

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

为什么有的PSD文件明明没什么图层,却又几百个兆有的甚至G。真正原因是因为 PS 在操作过程当中,文档中保存了历史图像多余的操作数据,这可能是某个 PS 版本的 Bug。
工具/原料
1

电脑

2

PS软件

方法/步骤
1

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

2

将下面这段代码复制粘贴到文本文档中,另存为 Jsx 格式文件。function deleteDocumentAncestorsMetadata() {whatApp = String(app.name);//String version of the app nameif(whatApp.search('Photoshop') > 0) { //Check for photoshop specifically, or this will cause errors//Function Scrubs Document Ancestors from Filesif(!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

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

推荐信息