dsh-inline-images: Rendering Local Images in DSH Conversation Body

Preface

DSH emphasizes that “everything is a plugin.” In real conversations, LLMs sometimes don’t directly provide an image but instead output a local image path, such as a screenshot path or a generated image path. In the message body, such a path is just text, which is inconvenient to view directly.

dsh-inline-images solves this problem: it scans the assistant’s reply text for local image paths, rewrites actually existing images to same-origin loopback URLs, and renders them directly in the message body. It is not a built-in component of the official app store; the community directory is an independent site with no official affiliation to DeepSeek / High-Flyer.

What Is This

  • Plugin name: 3403473060/dsh-inline-images
  • Maintainer: 3403473060
  • License: MIT
  • One-line description: Inline images in conversations; local image paths output by LLM replies are rendered directly as images in the message body, supporting 9 formats, click-to-zoom lightbox, and adjustable dimensions.

Core Features

Inline Rendering in Message Body

The plugin scans the assistant’s reply text for local image paths. For images that actually exist, the plugin rewrites them to same-origin loopback URLs and renders them in the message body.

Supports 9 Formats

The following image formats are supported:

png / jpg / jpeg / webp / gif / svg / avif / bmp / ico

Click-to-Zoom Lightbox

Clicking an image in the message body opens a fullscreen view. Click the background or press Esc to close it.

Adjustable Dimensions

Go to Settings → Inline Images to adjust the maximum width/height of inline images.

The adjustable range is 64–2400 px, with a default of 640×420. Settings are persisted to:

INLINE_IMAGE_MAX_WIDTH
INLINE_IMAGE_MAX_HEIGHT

Graceful Degradation

If a path does not exist, or if the path belongs to example/placeholder paths, the plugin silently skips it without affecting the conversation. In such cases, the message content remains plain text URLs, and plain-text model adapters will not reject it.

Installation and Activation

Build the plugin first, then install it to the web profile. Use the following commands during installation—do not construct other installation commands based on the plugin name.

pnpm install
pnpm run build
dsh plugin --profile web add ./dsh-inline-images

Typical Usage

After completing the steps above, use it as follows:

  1. Enable Inline Images in DSH settings.
  2. Adjust the maximum width/height of inline images, ranging from 64–2400 px, with a default of 640×420.
  3. In the conversation, ask the LLM to output a real existing local image path.
  4. If the path exists and the format is supported, it will be rendered as an image in the message body.
  5. Click the image to view the fullscreen version; click the background or press Esc to close it.
  6. If the path does not exist, or if it is an example/placeholder path, the message will still display as plain text URL.

Use Cases and Notes

Suitable for DSH / agent developers who want to view local image paths returned by the assistant under the web profile.

Before use, note:

  • The plugin processes real existing local image paths and rewrites them to same-origin loopback URLs.
  • The token is randomly generated each activation.
  • The plugin runs with the current dsh process permissions; inspect the source code and license before installation.
  • The current license is MIT.
  • The community directory is an independent site with no official affiliation to DeepSeek / High-Flyer; do not treat it as an official app store.

Links

  • Directory page: https://www.skillhub.cn/plugins/3403473060/dsh-inline-images
  • GitHub: https://github.com/3403473060/dsh-inline-images
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye