Configuration

IIIF API for Invenio.

invenio_iiif.config.IIIF_API_PREFIX = '/iiif/'

URL prefix to IIIF API.

invenio_iiif.config.IIIF_PREVIEWER_PARAMS = {'size': '750,'}

Parameters for IIIF image previewer extension.

invenio_iiif.config.IIIF_PREVIEW_TEMPLATE = 'invenio_iiif/preview.html'

Template for IIIF image preview.

invenio_iiif.config.IIIF_UI_URL = '/api/iiif/'

URL to IIIF API endpoint (allow hostname).

Invenio-IIIF depends heavily on Flask-IIIF module for images transformation. Configurations related to images formats, resize and caching are provided by Flask-IIIF:

  • IIIF_RESIZE_RESAMPLE
    Specifies the algorithm used to resample the image. The default one is PIL.image.BICUBIC
  • IIIF_CACHE_HANDLER
    Specifices how to cache thumbnails, e.g. in memory, Redis or any custom implementation.
  • IIIF_CACHE_TIME
    Specifies for how long images will be cached.
  • IIIF_FORMATS
    Specifies the supported images formats and associated MIME types