PS删除去掉元数据
墨渊和夜华Photoshop怎么去掉元数据?
有⼀些PSD⽂件,明明图⽚宽⾼像素不⼤,⽂件却很⼤,使⽤photoshop软件编辑时电脑“卡渣飞”了,查看元数据后发现元数据很多,这些元数据就是“元凶”,那么如何去掉元数据呢?
1. 将下⾯这段代码复制粘贴到⽂本⼯具当中,另存为后缀名为Jsx 格式⽂件,⽐如“PSD瘦⾝.jsx”。
2. 然后PS打开有元数据的PSD⽂件,执⾏「 ⽂件」——「 脚本」——「 浏览…」,选择保存的 Jsx 格式⽂件“PSD瘦⾝.jsx”,即可
解决该问题。
代码如下:
头盔蛋龟function deleteDocumentAncestorsMetadata(){
//String version of the app name环境工程专业
whatApp =String(app.name);
// Check for photoshop specifically, or this will cause errors
if(whatApp.search("Photoshop")>0){
// 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( pMetadata.rawData);
// Begone foul Document Ancestors!
xmp.deleteProperty(XMPConst.NS_PHOTOSHOP,"DocumentAncestors");
pMetadata.rawData = xmp.serialize();
建筑安全员}
}
// Now run the function to remove the document ancestors
deleteDocumentAncestorsMetadata();
>储备的近义词
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论