展开全部
将ps文件存储为jpg图片e5a48de588b63231313335323631343130323136353331333366306461的时候,发现图片会很大,几十甚至上百M,解决PS中存储JPG图片很大的问题操作步骤如下:
1.鼠标置于桌面右键“新建-文本文档”,如下图红框所示;
2.在新建的文本文档里面输入如下代码:
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();
3.保存之后将文档右键文档进行“重命名”,如下图红框所示;
4.重命名为“.jsx”格式,如下图红框所示;
5.然后打开PS软件,点击上方菜单栏的“文件”,如下图红框所示;
6.点击“脚本-浏览”,如下图红框所示;
7.选择刚刚建立的“.jsx”文件,,如下图红框所示;
8.点击“载入”按钮,然后就会自动运行,没有任何提示,运行完毕之后重新储存照片就不会过大。