Overview

I made improvements to “IIIF Annotator,” a polygon annotation support tool for IIIF images. Specifically, I worked on the following three points:

  • Support for manifest files that do not use an Image Server
  • Export function for IIIF manifest files with annotations
  • Export function for TEI/XML files

The following sections explain these improvements.

Background

The following article explained the reasons for creating a new annotation tool.

The features added this time are also available in other tools, but were implemented for improved convenience.

Support for Manifest Files Without Image Server

As introduced in the following article, IIIF manifest files can be used without the Image API (Image Server). While there are drawbacks, the advantage is that it can be used without deploying software like Cantaloupe Image Server.

Previously, IIIF Annotator was implemented with the assumption that an Image Server was being used. With this improvement, manifest files that do not use an Image Server can now also be loaded.

Specifically, the tileSources passed to OpenSeadragon were adjusted based on the presence or absence of a service property as follows.

con.}.)sm)f;taccic}i}}i(poofo;fltt(nnnisrer}titi(ss(sde(ele;elilctt!t:rbtsttureleaavoueuyr(SeSnaanbsidrrploSovnnnotcyn{ne:uouannodre.:rursootyi?sb{bcrc:ttan:eo"oeceaat=grdid:esCtti;{vymyaiioai.a.s!=noonn"csgit=vnn)n@eeedr=caPoir",iasa=rtd&v,nnn)gea"&iguveatt:cla=nuibe|ls>=nroso[eonntd0{s{ct.ry]aanbi.[tntuons"yvildge@paolyriesn;}vd:.Pa[i"ias]c]stg;etee{.+rm?lis.e"n?in/g.tgi;[etn0mhfu]sor;?>.l.j:[0s0)os]nt;{"r;ing}|null)=>

Export Functions

Export functions for IIIF manifest files with annotations and TEI/XML files were added. When pressing the export button, the following options are displayed.

The IIIF manifest file with annotations can be loaded into Mirador or similar viewers to review annotation results.

For TEI/XML files, annotation results can be reviewed using the Author Mode of Oxygen XML Editor or similar tools.

Summary

I hope this serves as a helpful reference for utilizing IIIF annotation results.