完美解决Photoshop导出的 jpg 图片很大的问题

2025-12-30 20:49:56

1、这代码复制到文本里,后缀名为.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();

完美解决Photoshop导出的 jpg 图片很大的问题

2、到PS里打开那个大文件

完美解决Photoshop导出的 jpg 图片很大的问题

3、文件菜单,脚本,浏览,选择这个.jsx文件

完美解决Photoshop导出的 jpg 图片很大的问题

4、最后保存一下试试 是不是解决问题了

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢