olivine13/dsh-image-scope ↗★ 0
dsh-image-scope
Pixel-coordinate readout and one adjustable measuring rectangle for the DeepSeek Harness sidebar image preview.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:olivine13/dsh-image-scope说明文档
阅读完整 README ↗Usage
- Open an image in the right sidebar (PNG, JPEG, GIF, WebP, BMP, ICO, or SVG).
- Pick Pixel Scope in the viewer dropdown if it is not already selected. It is the default viewer for images.
- Move the pointer over the image to read coordinates.
- Drag to draw the dashed rectangle.
- Drag inside the rectangle to move it; drag a corner or edge handle to resize it. Edges snap to the image boundaries.
- Press Ctrl+D / ⌘D, click Clear, or draw a new box to replace it.
Coordinates are zero-based from the top-left pixel. Width and height count whole pixels, including both ends, so a box from x=100 to x=199 is 100 px wide.
Configuration
Edit config.json in the plugin package. The sections are:
| Section | What it controls |
|---|---|
font | font families, font sizes, line heights |
canvas | canvas background and text color, scroll padding, focus ring |
selection | dashed box stroke, width, dash pattern, fill, fill opacity |
crosshair | hover crosshair color, opacity, width, dash |
pixel | hovered pixel cell outline |
handle | the eight resize handles: size, radius, fill, stroke |
selectionInfo | bottom-left measurement bar: position, width, spacing, padding, colors |
hud | bottom-right hint/size bar: position, width, spacing, colors |
toolbar | zoom toolbar and its buttons, value, separator |
status | loading and error text |
The Host reads the file on each page boot and injects it into the browser. After editing, refresh the page. A page that was already open before the plugin was first enabled uses an embedded default style until it is refreshed; the injected file wins afterwards. If edits still do not apply after a refresh, restart DSH once so the Host half reloads.