相信各位设计新人朋友甚至老设计都经常有这样的情况
图片一张张文件
最后保存JPG几十兆几百兆???
这是因为图片放进去连带元数据一起进去了,
但是清除这部分元数据又比较麻烦,
百度方法小白是看不懂的,
所以我这边一直在用的一个(某乐声)补丁分享给各位!
1、下载压缩包,解压。
2、打开PS,选择文件→脚本→清除当前文档XMP数据
3、清除完成
创建一个记事本以下内容进去,另存为JSX格式放到X:\ProgramFiles\Adobe\PhotoshopCC\Ps\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(清除完成);