当前位置:网站首页 > 云资源 > 正文

PS清除XMP元数据补丁,解决图片文件保存内存过大

作者:风月 日期:2019-12-26 11:09:49 浏览:2479 分类:云资源

创建一个记事本复制以下内容进去,另存为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.选中所有图层,右键复制所有图层到新建文件,这样在新建的画布里存储也就没图片过大的问题了

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

请填写验证码