tify-iiif-viewer/tify

Support IIIF Image API

cmahnke opened this issue · 8 comments

See #63, there has to be an internal IIIF Image API implementation in order to work, it should be exposed to the user on demand.

ipf commented

How would you pass the image to the Viewer? Just the plain image or info.json?

The first step would be to transparently support the info.json as in the original issue: Just check if the manifest parameter is either an Image API or Presentation API endpoint and act accordingly.
The second step would be a baseURI parameter in the tifyOptions dictionary, this would allow passing Image API endpoints with relative identifiers / URLs.
The third step would be the possibility to just pass plain images with an additional parameter instead of manifest.

ipf commented

So, instead of the manifest-Parameter we could use an imageparameter with the link to the info.json and hide all panels and only display the image?

Well, using just another param was the least favourable option. It should be quite easy to implement...
That's the main benefit, the drawback would be that the user would have to decide, which kind of API he's be dealing with. Doesn't sound like a good idea to me...

ipf commented

So the steps are:

  1. see which type of IIIF API is requested (@protocol: http://iiif.io/api/image or http://iiif.io/api/presentation/2/context.json) and then switch accordingly whether Image or Presentation API is displayed. Also https:// should be valid in the protocol
  2. if only Image API is used, put the image on the OpenSeadragon, if Presentation is used, put all panels and launch the fully fledged viewer
  1. You seem to mix up @context and @protocol. And consider using String.startsWith() to be version agnostic, since the underlying viewer implementation might also support other API versions for the Image API.
ipf commented

You seem to mix up @context and @protocol.

Yes.

t11r commented

Same requirement as #129, closing this because description there is clearer.