Image Annotator

by Adlin
5
4
3
2
1
Score: 35/100

Description

Annotate images directly in Obsidian with rectangles, arrows, text, and freehand marks.

Reviews

No reviews yet.

Stats

2
stars
1,252
downloads
3
forks
80
days
76
days
76
days
2
total PRs
2
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
6
commits

Latest Version

3 months ago

Changelog

English

What's new

  • Select, move, resize, recolor, and delete individual annotations. Edit multiline text and numbered markers after placing them.
  • Add sequential numbered markers, solid redactions, and translucent highlights alongside rectangles, arrows, and freehand drawing.
  • Save editable annotation data with a base-image snapshot. Reopen the PNG to continue editing individual objects; companion files follow image renames and moves in Obsidian while the plugin is enabled.
  • Copy a flattened PNG to the clipboard without selection outlines or editable data.
  • Remember the last color, line width, and font size, with six preset color swatches.
  • Fit images to the window, view at actual size, zoom around the pointer, and pan with Space-drag, the middle mouse button, or the hand tool.
  • Replace one chosen image embed or all matching embeds in the current note, preserving wiki dimensions and standard Markdown alt text and titles.
  • Confirm before discarding unsaved work, prevent duplicate or conflicting saves, and restore existing files after failed writes.
  • Include the Image Converter context-menu integration fix.

Editable files and redaction

An editable image consists of a PNG and its companion <image>.png.annotator.json. Keep both files to continue editing. The JSON contains the unredacted base image: share only the PNG or the copied image when distributing redacted results.

When moving files outside Obsidian, move both files and keep their names paired. Existing annotations already flattened into older PNGs cannot be recovered as editable objects. If another tool changes an annotated PNG, the plugin refuses to load stale annotation data.

Installation

Update Image Annotator from Obsidian's Community plugins settings. For manual installation, place the three release assets (main.js, manifest.json, and styles.css) in <vault>/.obsidian/plugins/image-annotator/, then reload the plugin.

Requires Obsidian 1.8.7 or later. The interface follows Obsidian's language, with Chinese and English available.

简体中文

更新内容

  • 支持选中、移动、调整尺寸、修改颜色及删除单个标注;文字和编号放置后可继续修改,文字支持多行。
  • 在矩形、箭头和画笔之外,新增连续编号、实心遮挡和半透明高亮。
  • 保存底图快照及独立标注数据,再次打开 PNG 后继续编辑;插件启用期间,在 Obsidian 中重命名或移动图片,会同步移动配套文件。
  • 一键复制合成 PNG,不包含选择框和可编辑数据。
  • 记住上次使用的颜色、线宽和字号,提供六个常用色。
  • 支持适应窗口、原始大小、指针位置缩放,以及空格、中键或手形按钮拖动画布。
  • 替换指定的一处图片引用,或替换当前笔记全部匹配引用;保留 Wiki-link 尺寸及标准 Markdown 替代文本和标题。
  • 关闭前确认未保存的更改,阻止重复保存和冲突覆盖,写入失败时恢复已有文件。
  • 包含 Image Converter 右键菜单集成修复。

可编辑文件与遮挡

可编辑图片由 PNG 和配套的 <图片名>.png.annotator.json 组成,继续编辑需要同时保留两者。JSON 包含未经遮挡的底图,对外分享遮挡结果时,只分享 PNG 或复制出的图片。

在 Obsidian 之外移动文件时,请同时移动两者并保持名称配对。旧 PNG 中已经合成的标注无法恢复为独立对象。标注 PNG 被其他工具修改后,插件会拒绝加载旧标注数据。

安装

可在 Obsidian 的第三方插件设置中检查并安装更新。手动安装时,将三个发布附件 main.js、manifest.json、styles.css 放入 <vault>/.obsidian/plugins/image-annotator/,然后重新加载插件。

需要 Obsidian 1.8.7 或更高版本。界面跟随 Obsidian 语言,支持中文和英文。

README file from

Github

Image Annotator

English | 简体中文

Image Annotator adds a focused annotation workspace to Obsidian. Open an image from its context menu, add visual notes, and save a flattened PNG beside the source file.

Features

  • Draw rectangles, arrows, freehand marks, multiline text, numbered markers, solid redactions, and translucent highlights.
  • Select, move, resize, recolor, and delete individual annotations. Double-click text or a numbered marker with the select tool to edit its content.
  • Remember the last color, line width, and text size; pick from six color swatches.
  • Zoom, fit to window, view at actual size, and pan with Space-drag or the middle mouse button, or use the hand button on touchscreens. Ctrl/Cmd+wheel zooms around the pointer.
  • Undo and redo annotation changes.
  • Save a PNG and editable annotation data beside the source image, then reopen the PNG to continue editing individual annotations.
  • Copy a flattened PNG to the clipboard where image clipboard access is available.
  • Replace one chosen image embed or all matching embeds in the current note.
  • Confirm before discarding unsaved changes; prevent duplicate and conflicting saves.

The first save leaves the original image untouched and creates <original-name>-annotated.png. Opening an existing -annotated.png derivative and saving it updates that derivative. Files created by earlier versions with the -标注.png suffix remain supported and are updated in place.

Each editable PNG has a companion <image>.png.annotator.json file containing an immutable base-image snapshot and annotation objects. Keep both files to continue editing. Renaming or moving a PNG in Obsidian while the plugin is enabled also moves its companion file. When moving files outside Obsidian, move both files and keep their names paired. Changing the original source image does not affect the saved snapshot. An externally changed PNG or invalid companion file is rejected instead of silently restoring stale annotations.

Old flattened PNGs remain usable as backgrounds; annotations already baked into their pixels cannot be recovered as individual objects.

Usage

  1. Right-click a supported image in the file explorer or an image embed.
  2. Select Annotate image.
  3. Add annotations and select the save button.
  4. Keep the original embed, replace the selected occurrence, or replace all matches.

Ctrl/Cmd+Z undoes, Ctrl/Cmd+Shift+Z or Ctrl/Cmd+Y redoes, Ctrl/Cmd+S saves, and Delete removes a selected annotation. Escape prompts before discarding changes.

Supported source formats are PNG, JPEG, WebP, GIF, and BMP. Exports are PNG files. Animated images are flattened to the frame displayed when opened.

Privacy

Image Annotator works entirely inside your vault. It does not use the network, collect telemetry, or access files outside the vault.

The companion JSON contains the original, unredacted base image. Share only the flattened PNG or the copied image when sharing redacted content. Clipboard output contains neither editable objects nor the base-image snapshot.

Languages

The interface follows Obsidian's language automatically. Chinese is shown for Chinese locales; all other locales use English.

Manual installation

Download main.js, manifest.json, and styles.css from the latest release and place them in:

<vault>/.obsidian/plugins/image-annotator/

Reload Obsidian and enable Image Annotator under Community plugins.

Development

npm install
npm run build
npm run lint
npx playwright install chromium
npm test

Build output is written to dist/. Browser regression tests cover drawing, editing, clipboard pixels, persistence, write failures, reference replacement, and desktop/mobile layouts. QA screenshots are written to work/qa/.

License

MIT