Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IIIF Image API #85

Closed
cmahnke opened this issue Dec 3, 2020 · 8 comments
Closed

Support IIIF Image API #85

cmahnke opened this issue Dec 3, 2020 · 8 comments
Assignees

Comments

@cmahnke
Copy link

cmahnke commented Dec 3, 2020

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
Copy link
Contributor

ipf commented Dec 9, 2020

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

@cmahnke
Copy link
Author

cmahnke commented Dec 14, 2020

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
Copy link
Contributor

ipf commented Sep 1, 2022

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?

@cmahnke
Copy link
Author

cmahnke commented Sep 2, 2022

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
Copy link
Contributor

ipf commented Sep 5, 2022

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

@cmahnke
Copy link
Author

cmahnke commented Sep 5, 2022

  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
Copy link
Contributor

ipf commented Sep 5, 2022

You seem to mix up @context and @protocol.

Yes.

@t11r
Copy link
Contributor

t11r commented Oct 20, 2022

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

@t11r t11r closed this as completed Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants