-
Notifications
You must be signed in to change notification settings - Fork 10
Description
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!
This will need to be either ported to Mirador 3 too, see my comment at the end of