这个尺寸的图片 正常是不会超出5m的
超出的原因是 图片应该从别的地方找来的 图片含有大量元数据 所以导出尺寸会非常大
两个办法,一个是直接按alt+shift+ctrl+S 存储为web所用格式
这个办法治标不治本 元数据还在原文件里面 以后存储为其他格式还是会很大 但是方便
第二个是直接取出元数据
这个可以百度搜一下ps去除元数据的代码 然后导入脚本 这样文件里面没用的元数据就会没有了 这样普通储存也会很小了
代码如下
打开记事本,输入以下文字,并存储为.jsx文件
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();
上传600x800像素不能超过五。