janewas/dsh-image-annotate ↗★ 0

dsh-image-annotate

DSH web plugin: click a pending image in the composer to annotate it (pen, box, arrow, and movable/resizable text frames) and insert the annotated PNG back as a new attachment.

套件
dsh-image-annotate
相容性
待驗證
版本
0.4.1
授權
MIT
最近更新
2026年9月14日

同名套件的其他儲存庫

安裝

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

Usage

  1. Add an image to the composer as usual (drag it in, or use the paperclip).
  2. Click its thumbnail. The annotation dialog opens with the image at full size.
  3. Draw: pick a tool, a colour and a width; for text, click a spot and type.
  4. Click 「插入到输入框」 (Insert into composer). The annotated PNG appears at the end of the attachment rail, and the original is still there.
ToolInteraction
Pendrag to draw freehand
Boxdrag from one corner to the other
Arrowdrag from tail to head
Textdrag a frame, type inside it; Enter confirms (Esc cancels, clicking elsewhere confirms, Shift+Enter adds a line)
Move / resize a framewith the text tool: drag the frame body to move, drag one of the eight handles to resize. The text re-fits live, and the frame stops shrinking when the text would no longer fit at the minimum readable size
Edit / delete a framedouble-click inside it to change the text (clearing the text deletes the frame); select it and press Delete. Ctrl/Cmd+Z undoes a move, a resize, a text change or a delete

Undo and Clear sit in the toolbar (Ctrl/Cmd+Z also undoes). Both stay available while you are typing inside a frame: Undo discards the text you have not committed yet, Clear discards it and wipes the committed annotations; they are greyed out only when there is genuinely nothing to undo or clear. Close with Esc, the 关闭 button, or a press on the backdrop.