文章日志
日志类别:技术
2020-08-14 09:47

此原因是由元数据造成。

打开文件,选择菜单栏的文件→文件简介→原始数据,发现非常多。


解决方法,新建一个后缀名为.jsx的文件,将以下内容保存进去,如 psclear.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( 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(); 
然后选择PS菜单栏,脚本→浏览,选中保存好的jsx文件,稍等片刻,查看文件→文件简介→原始数据,发现内容变少了,现在发现是不是PS是不是速度快了很多。





0    0
昵称: