DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Read Image Jpeg Fallback — DeepSeek Harness 插件(DSH Plugin)
← Plugins
R

dsh-read-image-jpeg-fallback

Read Image Jpeg Fallback

DSH 配置插件:将 read_image 的 PNG/WebP 附件转换为不透明的 sRGB JPEG,以便 LM Studio 的 openai-completions 端点接受它们

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:wuyiwuaa1-ship-it/dsh-read-image-jpeg-fallback#864761d82d8cfdbc63843faf8507f418dbe8c317
README兼容性版本

兼容性与来源证明

Read Image Jpeg Fallback 以 dsh-read-image-jpeg-fallback 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/8/26

版本

0.1.1stable
2026/8/26

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/8/26
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 vision-media 分类下经过校验的插件。

Tool Describe Image@linxin666/dsh-tool-describe-image面向模型的 describe_image 工具,用于 dsh Web GUI:通过在兼容 OpenAI 的端点调用视觉语言模型,为文本模型提供图像理解能力,以描述一张图像(本地路径、http(s) URL 或附件引用)。可热插拔 —Modlens@liustack/modlens面向仅支持文本的 LLM 的插件视觉能力,由免费的 Antigravity CLI 提供支持Vision Toolkit@anionex/dsh-vision-toolkit面向 Harness 原生集成的 DeepSeek 与 agent-vision-toolkit:图像问答、OCR、定位、UI 还原、像素差异、Artifacts 和 Web UI。Deepseek Ivideodeepseek-ivideoiPolloWork HyperFrames Video Studio,以及 27 个可编辑视频模板,以原生 DeepSeek Harness 对话视图呈现。

README

dsh-read-image-jpeg-fallback

A zero-configuration DSH image compatibility shim for LM Studio.

It keeps DSH's native read_image + multimodal-model flow intact, but transparently converts PNG/WebP tool attachments to opaque sRGB JPEG before the next provider request is built.

Use it when your main model already supports images, but LM Studio's openai-completions route rejects a DSH image attachment with an error such as:

400 'url' field must be a base64 encoded image

This is a media-format compatibility plugin, not a vision model, OCR plugin, or image-to-text fallback.

Why this exists

In some DSH + LM Studio paths, read_image can produce a PNG/WebP image block that later reaches the provider request in a format LM Studio does not accept.

This plugin fixes only that transport mismatch:

read_image
    ↓
DSH image attachment
    ↓
PNG / WebP ?
    ├─ no  → pass through unchanged
    └─ yes → opaque sRGB JPEG (quality 90)
                    ↓
          same multimodal model

The model still receives the image itself. There is no OCR step, no auxiliary VLM call, and no conversion to a text description.

What makes it different

ApproachWhat happens to the imageMain model path
This pluginPNG/WebP is re-encoded to JPEGPreserved; the same multimodal model receives the image
Vision fallback pluginsImage is sent to another VLM and usually converted to textMain model receives a description/result
OCR / image-reader pluginsImage is analyzed by dedicated toolsMain model consumes tool output
Separate LM Studio vision toolsAgent calls a dedicated vision tool/modelBypasses the native read_image → current-model path

This plugin is intentionally narrow: it is useful when the native DSH vision path is already the behavior you want and only the image encoding is incompatible.

What it does

The plugin hooks into DSH after a successful read_image tool call and converts model-visible image blocks as follows:

  • image/png → opaque sRGB JPEG
  • image/webp → opaque sRGB JPEG
  • JPEG and other media types → unchanged

It does not replace the built-in read_image tool or patch DSH core source.

The conversion itself is local. The resulting JPEG then follows your existing DSH/provider request path.

When to use it

This plugin is a good fit when all of the following are true:

  • your selected/main model already supports image input;
  • you use LM Studio through an OpenAI-compatible openai-completions route;
  • read_image works until the following model request is built, then fails on the image attachment;
  • you want to preserve the native multimodal flow instead of routing the image through another vision model.

You probably do not need it if your provider already accepts the image formats DSH sends, or if your main model is text-only and you actually need a vision fallback/OCR solution.

Installation

Requires:

  • DSH 0.1.1-rc.2
  • Node.js >= 22
  • pnpm available on PATH

From npm

dsh plugin --profile web add dsh-read-image-jpeg-fallback

From GitHub

dsh plugin --profile web add github:wuyiwuaa1-ship-it/dsh-read-image-jpeg-fallback

To pin the current main branch explicitly:

dsh plugin --profile web add github:wuyiwuaa1-ship-it/dsh-read-image-jpeg-fallback#main

From a tarball

dsh plugin --profile web add .\dsh-read-image-jpeg-fallback-0.1.1.tgz

Restart DSH Web after installation.

Usage

No configuration is required.

Use read_image normally. When its successful result contains a PNG or WebP image block, the plugin creates a JPEG replacement for the model-visible attachment before the next provider request is built.

There is no new model-facing tool to learn and no change to the normal agent workflow.

Failure behavior

The plugin is designed to fail open.

If reading, converting, or saving the replacement image fails:

  • the original read_image result is preserved;
  • a warning is written to the DSH log;
  • a successful tool call is not converted into a plugin error.

Supported environment

Verified with:

  • DSH 0.1.1-rc.2
  • LM Studio openai-completions
  • Node.js 26.x
  • sharp 0.35.3
  • Windows

Compatibility with other DSH versions, operating systems, or providers is not guaranteed unless explicitly tested.

Known issue

On some Windows + pnpm setups, removing the plugin may hang after pnpm has already completed its filesystem changes, particularly when sharp is being pruned.

If this occurs, pinning sharp directly in the DSH profile avoids the issue:

cd <DSH_HOME>\profiles\web
pnpm add sharp@0.35.3

Uninstall

dsh plugin --profile web remove dsh-read-image-jpeg-fallback

Restart DSH Web afterwards.

How it works

The plugin uses DSH's tools/post-execute hook.

For accepted read_image results containing PNG or WebP image blocks, it:

  1. reads the stored attachment;
  2. converts it with sharp to opaque sRGB JPEG at quality 90;
  3. saves a new attachment through DSH's attachment store;
  4. replaces only the model-visible image block with the new JPEG reference.

The canonical tool result and built-in read_image implementation remain untouched.

Scope

The goal is deliberately small: provide a transparent image-format compatibility layer until the provider/host path accepts the original media format directly.

If upstream DSH or LM Studio gains equivalent handling, this plugin may become unnecessary for that configuration.

License

MIT