dsh-native-image-viewer
文件与数据 活跃维护

dsh-native-image-viewer

WSL043/dsh-native-image-viewer

提供原生级图片查看能力,支持缩放、平移、下载、画廊浏览与区域标注功能,轻量化设计无冗余依赖,交互流畅跟手,可满足开发场景下的各类图片查看需求。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
147 KB
仓库大小
29 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:WSL043/dsh-native-image-viewer
git clone https://github.com/WSL043/dsh-native-image-viewer.git
git clone git@github.com:WSL043/dsh-native-image-viewer.git
README.md main
# DSH Native Image Viewer A compact, provider-neutral image viewer for DeepSeek Harness. It upgrades images already shown by DSH without replacing the conversation, attachment, or model workflows. [![CI](https://cdnimage-cache.doubi.ren/?url=https://github.com/WSL043/dsh-native-image-viewer/actions/workflows/ci.yml/badge.svg)](https://github.com/WSL043/dsh-native-image-viewer/actions/workflows/ci.yml) [![npm](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/npm/v/dsh-native-image-viewer?logo=npm&label=npm)](https://www.npmjs.com/package/dsh-native-image-viewer) [![total npm downloads](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/npm/dt/dsh-native-image-viewer?logo=npm&label=total%20downloads)](https://www.npmjs.com/package/dsh-native-image-viewer) [![status](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/status-Beta-7c3aed.svg)](https://raw.githubusercontent.com/WSL043/dsh-native-image-viewer/main/#install) [![MIT](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/license-MIT-111111.svg)](https://raw.githubusercontent.com/WSL043/dsh-native-image-viewer/main/LICENSE) [![Stars](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/github/stars/WSL043/dsh-native-image-viewer?style=flat&logo=github&label=stars)](https://github.com/WSL043/dsh-native-image-viewer/stargazers) [Install](#install) · [Privacy](#privacy) · [简体中文](https://github.com/WSL043/dsh-native-image-viewer/blob/main/README.zh-CN.md)

Beta: the viewer targets the latest public DSH release. Unsupported image markup is left untouched instead of being guessed.

DSH Native Image Viewer with fit, original-size, zoom, and download controls

A numbered region note edited directly beside its image marker

Features

  • Wheel zoom centered on the pointer, drag-to-pan, touch pinch, and double-click 100% view.
  • Fit and original-size controls, original-file download, keyboard navigation, and multi-image galleries.
  • One-shot region marking with each note edited beside its numbered image marker.
  • Light and dark themes through DSH design tokens, responsive layout, focus containment, and reduced-motion support.
  • Optional nativeImageViewer client service so image-producing plugins can add their own continuation action.

DSH keeps working when the plugin is absent or cannot recognize a newer image surface. Other plugins may use the service when present, but must retain their own basic fallback.

Install

Install the Beta:

irm 'https://github.com/WSL043/dsh-native-image-viewer/releases/download/v0.1.0-beta.2/install.ps1' | iex

Or use the official DSH command directly:

dsh plugin --profile web add dsh-native-image-viewer@0.1.0-beta.2

Restart DSH manually after saving active work. The installer never needs access to provider credentials or image-generation accounts.

Update

Run the same version-pinned PowerShell helper or official add command for the version you want to install.

Uninstall

dsh plugin --profile web remove dsh-native-image-viewer

Uninstalling restores DSH's built-in image lightbox. It does not remove conversations, attachments, generated images, provider plugins, or credentials.

Privacy

Image bytes stay in the current browser profile. The plugin reads only URLs already rendered by DSH, does not upload images, does not call a model, and does not read provider credentials. Region notes remain transient unless another plugin explicitly uses them for a user-requested action.

Support

Open the bug report form with the exact plugin version, DSH version, operating system, image location (message or composer), and the action that failed. Do not include private images, credentials, or full session logs. Report sensitive security problems privately through GitHub Security Advisories.

License

简体中文 · Report a bug · Request a feature · MIT