AHG Extensions for AtoM

Home / Plugins / Seadragon Viewer

Seadragon Viewer

Contributes the Seadragon IIIF image viewer as an independently installable plugin. Registers a renderer with ahgIiifPlugin's RendererRegistry; install or disable it to choose the viewer.

Part of the IIIF & Advanced Viewing capability. Watch the walkthrough.

CategoryViewing
PackageahgSeadragonPlugin
Version1.1.3
StatusPackaged download with its own installer. Clean-database install not yet verified.
RequiresIIIF
External servicesCan use, when installed: Cantaloupe IIIF image server
LicenceAGPL-3.0-or-later
InstallPackaged download with its own installer: see the downloads page

OpenSeadragon as an independently installable AtoM plugin. Deep zoom on a single image, with the pan, rotate and page controls a reader expects.

Requirements

AtoM              2.9 or 2.10
PHP               8.1 or later
ahgIiifPlugin     carried in this bundle
ahgCorePlugin     carried in this bundle
ahgRuntimePlugin  2.14.1 or later, installed separately

OpenSeadragon is vendored, so there is no CDN to whitelist and no build step.

An IIIF image server is optional and stays yours - see the image server guide. Whichever you run, it reads files straight off disk and knows nothing about AtoM's access control; the Cantaloupe delegate that closes that ships in this bundle at ahgIiifPlugin/config/cantaloupe/delegates.rb.

Known limits

OpenSeadragon exposes 174 options. This plugin sets 19 as defaults and accepts 54. Untouched:

  • Fine navigator styling - size ratio, auto-fade, colours, explicit positioning
  • Blend and compositing - blendTime, alwaysBlend, compositeOperation, opacity
  • Image cache tuning - imageLoaderLimit, maxImageCacheCount, minScrollDeltaTime
  • Debug options

Collection display, touch and pen gestures, ajaxHeaders and the sequence controls are now configurable per record through $config['options'], but have no field on the settings screen - they are set in code by whoever renders the viewer.

Verified against Cantaloupe 5.0.6: the viewer opens a manifest, extracts the tile source and renders. Verified with one record and one image - a real multi-page TIFF has not been through it.

Licence: AGPL-3.0-or-later.

Installation

Download the bundle and the runtime from the downloads page, then follow the bundle's INSTALL.md. In short, from the AtoM root, after a backup and on a staging copy first:

unzip ahgRuntimePlugin-<version>.zip -d plugins/
unzip ahgSeadragonPlugin-<version>.zip -d plugins/
php plugins/ahgSeadragonPlugin/bin/install-plugin-schema.php \
    --database=<database> --user=<user> --password=<password>

Then enable it in Admin > Plugins, clear the cache and reload PHP.

Try it

This feature is for signed-in staff, so it is not open on the public demo. Watch the walkthrough instead.

Source and README on GitHub · Questions: support@theahg.co.za or WhatsApp