dsh-auto-image-optimizer

DSH 图片上传前客户端等比压缩插件:拦截剪贴板粘贴与拖拽上传的图像,在内存中用 Canvas 将最长边超过 1999px 的图片等比缩放后再投递,并在未冻结的旧宿主上尝试放宽 maxImageDimension 至 4096。

插件介绍

DSH 图片上传前客户端等比压缩插件:拦截剪贴板粘贴与拖拽上传的图像,在内存中用 Canvas 将最长边超过 1999px 的图片等比缩放后再投递,并在未冻结的旧宿主上尝试放宽 maxImageDimension 至 4096。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:zyf2492313716-cloud/dsh-auto-image-optimizer

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。