Open mikegerber opened 4 years ago
I may be missing sth, but those are actually all reasons for using IIIF ;)
I could probably think of more reasons pro IIIF.
Reasons I am contemplating only working with local files:
Not the last word spoken, but I tend to work with local files. Even TIFF support looks doable.
CSS experiments:
This means:
Based on your example, here is how this can also be done serverside just with the pixel information you already have in the OCR and an awesome API.
E.g. the IIIF-URL for your example looks like this:
{baseurl}/{identifier}/{x,y,w,h}/{size}/{rotation}/default.{jpg|png|tif}
50% scaled:
Or get PNG
Even TIF! - except it wont render in any web browser ;)
If you replace {baseurl}{identifier}
with those of any other institution that implements the IIIF Image API, this will always work.
See just a few example (different documents of course)
BSB https://api.digitale-sammlungen.de/iiif/image/v2/bsb00103155_00013/149,450,1244,228/1200,/0/default.jpg https://api.digitale-sammlungen.de/iiif/image/v2/bsb00103155_00013/149,450,1244,228/600,/0/default.jpg https://api.digitale-sammlungen.de/iiif/image/v2/bsb00103155_00013/full/full/0/default.jpg
ÖNB https://iiif.onb.ac.at/images/ABO/Z165851607/00000001/149,450,1244,228/1200,/0/default.jpg https://iiif.onb.ac.at/images/ABO/Z165851607/00000001/149,450,1244,228/600,/0/default.jpg https://iiif.onb.ac.at/images/ABO/Z165851607/00000001/full/full/0/default.jpg
BnF Gallica https://gallica.bnf.fr/iiif/ark:/12148/btv1b9055204k/f1/149,450,1244,228/1200,/0/default.jpg https://gallica.bnf.fr/iiif/ark:/12148/btv1b9055204k/f1/149,450,1244,228/600,/0/default.jpg https://gallica.bnf.fr/iiif/ark:/12148/btv1b9055204k/f1/full/full/0/default.jpg
There are a few hundred libraries, museums and archives worldwide that implement this, and growing.
There are Python libraries for it:
Bottom line - IIIF is fun ;)
The problem is: How do I know the IIIF URL?
Thinking about it, the first idea is following
OCR-D interface
CLI interface
To be honest, if the browsers would support TIFF I would not consider IIIF at all because cropping an image is trivial and supporting IIIF here just adds complexity by requiring a IIIF URL etc.
The tool should display an image corresponding to the text line/OCR error selected.
I'll probably use the local images to display, not IIIF as this seems more general.