← demo catalog · docs

@projektemacher/tify-plugin-annotorious

Note: This code was generated with AI assistance — opencode, powered by GLM (Z.ai).

Display-only Annotorious annotations for the TIFY IIIF viewer: imports xywh annotations from the IIIF manifest and renders them as shapes with a translated list panel.

import { annotoriousPlugin } from '@projektemacher/tify-plugin-annotorious';
import '@projektemacher/tify-plugin-core/style.css';
import '@projektemacher/tify-plugin-annotorious/annotorious.css';

const plugin = await annotoriousPlugin(tify, {
  panelEl: document.querySelector('#panel'),
});

Notes

Example

example/ — display-only shapes from IIIF xywh annotations plus a list panel. Run npm run dev at the repo root and open /packages/plugin-annotorious/example/ (defaults to the IIIF cookbook tagging manifest).

Manifest generation

The image side can be any plain image service — generate one with fliiifenleger (generate, --iiif-version V3 recommended):

java -jar cli/target/fliiifenleger-cli.jar generate --iiif-version V3 \
  -o ./my-iiif-images /path/to/image.jpg

The xywh tagging annotations themselves are added afterwards, at the Presentation-manifest level.

Development

npm run build       # dist/ (ESM + declarations)
npm run typecheck
npm run test:i18n   # catalogue coverage for src/ + example/
npm run lint

License: AGPL-3.0-or-later.