清除當前文檔XMP數(shù)據(jù)工具是一款可以快速清除圖片文件XMP數(shù)據(jù)元的小工具軟件,用戶安裝這個補丁后就可以快速的清空當前圖片文檔的元數(shù)據(jù),從而減少圖片文件的體積大小。歡迎有需要的朋友前來西西下載體驗這款軟件!
軟件介紹
相信各位設計新人朋友甚至老設計都經常有這樣的情況
圖片一張張插入文件
最后保存JPG幾十兆幾百兆???
這是因為圖片放進去連帶元數(shù)據(jù)一起進去了,
但是清除這部分元數(shù)據(jù)又比較麻煩,
百度方法小白是看不懂的,
所以我這邊一直在用的一個(某樂聲)補丁分享給各位!
使用方法
1、下載壓縮包,解壓。
2、打開PS,選擇文件→腳本→清除當前文檔XMP數(shù)據(jù)
3、清除完成
手動方法
創(chuàng)建一個記事本復制以下內容進去,另存為JSX格式放到X:\ProgramFiles\Adobe\PhotoshopCC\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("清除完成");