Photoshop保存的PSD文件很大是怎么回事?

Photoshop保存的PSD文件很大是怎么回事?

1.新建文本文档,复制下面这段代码,然后保存,文档后缀原来是txt,改为jsx

2.打开ps的大文件,文件→脚本→浏览→jsx脚本文件,另存为,就OK了

脚本代码:

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();

格式为上面这样。

本来120m的图片变成了7m,cc2019可以用

注:单纯的复制完并没有用,要按格式来,不是太懂代码