创建一个记事本复制以下内容进去,另存为JSX格式放到 X:\Program Files\Adobe\Photoshop CC\Presets\Scripts 目录下
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();
alert("清除完成");
使用方法:
另外两种解决方法:
1.使用ctrl+alt+s 存储为web所用格式 即可解决存储图片过大问题
2.选中所有图层,右键复制所有图层到新建文件,这样在新建的画布里存储也就没图片过大的问题了
评论(0)