olivine13/dsh-image-scope ↗★ 0

dsh-image-scope

Pixel-coordinate readout and one adjustable measuring rectangle for the DeepSeek Harness sidebar image preview.

パッケージ
dsh-image-scope
互換性
未検証
Harness ピア範囲
>=0.2.1-rc.5 <0.3.0-0 || >=0.2.2-rc.1 <0.3.0-0
バージョン
0.0.1
ライセンス
MIT
最終更新
2026/11/06

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:olivine13/dsh-image-scope

ドキュメント

README 全文を読む ↗

Usage

  1. Open an image in the right sidebar (PNG, JPEG, GIF, WebP, BMP, ICO, or SVG).
  2. Pick Pixel Scope in the viewer dropdown if it is not already selected. It is the default viewer for images.
  3. Move the pointer over the image to read coordinates.
  4. Drag to draw the dashed rectangle.
  5. Drag inside the rectangle to move it; drag a corner or edge handle to resize it. Edges snap to the image boundaries.
  6. 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:

SectionWhat it controls
fontfont families, font sizes, line heights
canvascanvas background and text color, scroll padding, focus ring
selectiondashed box stroke, width, dash pattern, fill, fill opacity
crosshairhover crosshair color, opacity, width, dash
pixelhovered pixel cell outline
handlethe eight resize handles: size, radius, fill, stroke
selectionInfobottom-left measurement bar: position, width, spacing, padding, colors
hudbottom-right hint/size bar: position, width, spacing, colors
toolbarzoom toolbar and its buttons, value, separator
statusloading 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.