dsh-auto-convert

在 read、read_image 与 vision_* 打开文件之前先处理:长边超 2048 像素或体积超 8 MB 的图降采样(同一轮可降到 1280 再试一次),BMP/TIFF 转 PNG,按字节纠正标错的上传类型,并把 docx/xlsx/pptx、有文字层的 PDF、csv/tsv 与 html 转成 Markdown,不依赖任何外部程序。

插件介绍

在 read、read_image 与 vision_* 打开文件之前先处理:长边超 2048 像素或体积超 8 MB 的图降采样(同一轮可降到 1280 再试一次),BMP/TIFF 转 PNG,按字节纠正标错的上传类型,并把 docx/xlsx/pptx、有文字层的 PDF、csv/tsv 与 html 转成 Markdown,不依赖任何外部程序。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:yimengsuper2432/dsh-auto-convert

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.

版本兼容情况

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