Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IIIF Parser
This is a parser and set of low-level utilities for the following IIIF Specifications:
These include:
Note
A new version of the IIIF Presentation API is being developed (v4) which handles 3D content. This parser will
support this version soon. You can read about the additions here
Features
The features of this library are focussed on encoding the structure of all types of IIIF and providing utilities for extracting data from the IIIF or converting it into another format that is easier to develop with. The aim of the parser is to maximize the IIIF compatibility of other tools built on top of it.
IIIF Presentation 3
IIIF Presentation 2
The intention for IIIF Presentation 2 is to upgrade it to 3 and then work with that. The tooling will always offer and upgrade to the latest version and tools on top of that.
Image 3
The Image 3 parser is adapted from an Image Server implementation, and supports:
isLevel0(service)
supports(service, { extraQualities: ['grey'] })
helper which accepts a service and partial service to compareimageServiceSupportsRequest()
helper that can validate IIIF image requests before you make themregion
,size
,quality
etc. and then creating a IIIF Image request URL.canonicalServiceUrl()
,getId()
,getType()
andisImageService()
for compatibility and validationUpgrader standalone
Upgrades IIIF JSON to the latest IIIF Presentation version (current: 3).