从网上下载的资源用PS打开有时候会很卡顿以下几个方法可以让PS很丝滑
删除冗余的元数据,如何查看元数据菜单(文件)--文件简介(alt ctrl shift i)--原始数据
有时候会显示meta数据过大无法显示。
如何清理原始数据?
代码语言:javascript复制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();
复制代码另存为del.jsx 点击文件菜单---浏览---选择刚才保存的jsx文件即可