tify icon indicating copy to clipboard operation
tify copied to clipboard

Support IIIF Image API

Open cmahnke opened this issue 4 years ago • 4 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.

cmahnke avatar Dec 03 '20 18:12 cmahnke

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

ipf avatar Dec 09 '20 14:12 ipf

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.

cmahnke avatar Dec 14 '20 11:12 cmahnke

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?

ipf avatar Sep 01 '22 12:09 ipf

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...

cmahnke avatar Sep 02 '22 07:09 cmahnke

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

ipf avatar Sep 05 '22 07:09 ipf

  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.

cmahnke avatar Sep 05 '22 07:09 cmahnke

You seem to mix up @context and @protocol.

Yes.

ipf avatar Sep 05 '22 09:09 ipf

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

t11r avatar Oct 20 '22 22:10 t11r