-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow IIIF Manifests without an Image Service or with static images to work on IABookreader/Mirador #74
Comments
@giancarlobi i was thinking loud there, that maybe a work around is to have an internal, Archipelago Only info.json endpoint for this cases. I don't think we can expect our use case to be fixed on any other viewer, but i do want to have this feature. So, if i can expose an info.json endpoint for our own files, like under https://github.com/esmero/format_strawberryfield/blob/master/format_strawberryfield.routing.yml#L53 The trick here would the following, We do return the same info.json as cantaloupe (if there is one) but we change the base URI to our own wrapper that uses ?arguments as part of the ID? and we do allow/pass around the GET arguments, and only the ones we trust. What do you think? Too crazy? |
@DiegoPino I fully agree we don't have to wait a fix and yes we want this feature.
|
@giancarlobi yes! That is the idea. for PDF and Video (where the argument is a timecode) |
@giancarlobi also 👀 |
@DiegoPino That would be great because it makes solution really more simple. |
@giancarlobi heads up on this! ProjectMirador/mirador#2976 |
@DiegoPino I write here because correlated to this. I tried to call OSD with a static inline configuration as here (https://openseadragon.github.io/examples/tilesource-iiif/) and with @id pointing to cantaloupe image url + ?page=N (i.e. http://some.url/myfile.pdf?page=5) but OSD when generates tile source url adds features after ?page=N (i.e. http://some.url/myfile.pdf?page=5/full/1200,/0/default.jpg instead of before ?page=N (i.e. http://some.url/myfile.pdf/full/1200,/0/default.jpg?page=5). This last format works well with cantaloupe. |
Not longer an issue but we can revisit if a specific manifest has problems |
Related to #71
What is needed?
Now that PDF serving via IIIF is fixed on IABookreader we need more!
Given the fact that on JS we work on a Browser/HTML/CSS World, we need to know the width and height of the images we serve via IIIF always, to scale things and display them correctly. In the absence of an Image Resource Service definition in a IIIF Manifest, we have no access to a info.json, which means we can not get the size.
Solution is to either push size/width for every image from the SBF JSON into the IIIF Manifest when creating the Twig Template (we need SBF Runners for that) but in the case of a PDF that is serving pages via an Cantaloupe argument, that is not possible.
Solution: use JS!
#73 (comment)
This will need to be either ported to Mirador 3 too, see my comment at the end of
ProjectMirador/mirador#2616
@giancarlobi
The text was updated successfully, but these errors were encountered: