ps导出jpg图片好几十M,远远超过应该大小

 时间:2026-02-12 04:50:25

1、新建一文本文档。

2、把以下代码复制到建立的文本文档并保存

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 ancestorsdeleteDocumentAncestorsMetadata();

3、更改文本文档后缀名为.jsx

4、打开ps文件(导出jpg很大的文件),执行‘文件’——‘脚本’——‘浏览’命令。选中jsx文件。点击确定即可!!

  • ps怎么取消选区快捷键?
  • ps喷枪工具在哪
  • ps镜像翻转
  • PS如何删除路径?
  • ps怎么做星空效果人像
  • 热门搜索
    嘉峪关在哪里 色达在哪里 芝加哥旅游 黄芪枸杞泡水喝的功效 手指被夹淤血怎么办 如何恢复qq聊天记录 如何设置页码 重置路由器密码 二级路由器怎么设置 斐讯路由器