Canvases without associated Image Service, but only an Identifier are not recognized
Closed this issue · 3 comments
jbaiter commented
This PDF is generated but pages are all empty. Loads without problems in Mirador:
https://projectmirador.org/embed/?iiif-content=https://icat.digitaldogsbody.net/iiif/1/manifest
Manifest: https://icat.digitaldogsbody.net/iiif/1/manifest
Problematic Canvas Example:
{
"id": "https://icat.digitaldogsbody.net/iiif/1/canvas/11",
"type": "Canvas",
"height": 1471,
"width": 1000,
"items": [
{
"id": "https://icat.digitaldogsbody.net/iiif/1/canvas/11/page",
"type": "AnnotationPage",
"items": [
{
"id": "https://icat.digitaldogsbody.net/iiif/1/canvas/11/page/image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://files.transkribus.eu/Get?id=CUWUBAJLTWELOXAXSQTGJMMM&fileType=view",
"type": "Image",
"height": 1471,
"width": 1000,
"format": "image/jpg"
},
"target": "https://icat.digitaldogsbody.net/iiif/1/canvas/11"
}
]
}
]
}
Originally posted by @ch-sander in #23 (comment)
jbaiter commented
The cause is actually a mistake in the Manifest: It uses the illegal image/jpg
MIME type for the JPEG image on the Canvas annotations. The MIME type for JPEG is image/jpeg
with an e
, and this is what the code checks against.
@ch-sander are you in control of the icat.digitaldogsbody.net IIIF server?
ch-sander commented
Mike Bennett is. I will share this with him. Thanks for pointing out that issue.
digitaldogsbody commented
Thanks Johannes - now fixed!