loyalchiiina/dsh-chat-image-lightbox0

@loyalchiiina/dsh-chat-image-lightbox

DSH plugin: display images inline in chat with lightbox zoom, download (save-as), and prev/next navigation

包名
@loyalchiiina/dsh-chat-image-lightbox
版本
1.0.0
许可证
MIT
最近更新
2026年8月23日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:loyalchiiina/dsh-chat-image-lightbox

Usage

  1. Place images in ~/.dsh/uploads/ (or any directory served by your DSH instance)
  2. In your AI response, use markdown image syntax:
    ![Description](http://127.0.0.1:
    

/images/your-image.jpg)

3. The image will display inline with lightbox enhancement

**Note**: For the download button to trigger a save-as dialog, the image must be served from the same origin as your DSH instance (e.g., via the `/images/` route). Cross-origin images will open in a new tab instead.

### 使用方法

1. 把图片放到 `~/.dsh/uploads/` 目录(或 DSH 实例提供的任意目录)
2. AI 回复中使用 markdown 图片语法:

描述

3. 图片会内联显示并自动带 lightbox 增强

**注意**:下载按钮要弹出"另存为"对话框,图片必须从 DSH 同源路由提供(如 `/images/` 路由)。跨域图片会在新标签页打开。