universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

manifest does not show images

Open Pin0 opened this issue 2 years ago • 4 comments

UV version:

https://uv-v4.netlify.app/#?manifest=https://athenaeumcollecties.nl/collecties/gedigitaliseerde-collecties/manifest/0c18471e-3487-11e6-b76b-c34785ef8aa6&c=&m=&cv=

I'm submitting a:

  • [X] bug report

Current behavior:

No images are shown Expected behavior:

Images are shown Steps to reproduce: Please consider the following iiif manifest https://athenaeumcollecties.nl/collecties/gedigitaliseerde-collecties/manifest/0c18471e-3487-11e6-b76b-c34785ef8aa6

It validates the iiif presentation api 3.0 the metadata shows properly in the more information but the image is not shown.

The manifest works when added to other viewer like https://mirador-dev.netlify.app/tests/integration/mirador/

Other notes please also consider this manifest with multiple images which also are not shown however you see the individual image placeholders on the left. https://athenaeumcollecties.nl/collecties/gedigitaliseerde-collecties/manifest/96d683f4-b9b0-9027-1f20-f472f598f4d4

Pin0 avatar Jun 15 '23 14:06 Pin0

Hi @Pin0 the UV uses the content type to decide if it can render. In your manifest it is specified as image/jp2 which cannot be viewed in most browsers, so the UV simply provides a URL to download. If you switch this to image/jpeg it will work correctly.

Additionally, the type in the body of the annotation should be Image instead of image - although this is not breaking the UV implementation. (https://iiif.io/api/presentation/3.0/#57-content-resources)

Here is an amended manifest: https://gist.githubusercontent.com/stephenwf/b09d24a6df7f10ac41a88987f990c5c1/raw/c9b27ad51cc295423a017a50f87b9d16238e7296/manifest.json

and in the UV: https://uv-v4.netlify.app/#?manifest=https://gist.githubusercontent.com/stephenwf/b09d24a6df7f10ac41a88987f990c5c1/raw/c9b27ad51cc295423a017a50f87b9d16238e7296/manifest.json

stephenwf avatar Jun 15 '23 16:06 stephenwf

Thank! That already helps, However I'm still doing something wrong. I implemented your changes and the manifest with a single image are working. However a manifest with multiple images are show correctly in the main viewer but not in the column on the left with thumbs.

https://uv-v4.netlify.app/#?manifest=https://athenaeumcollecties.nl/collecties/gedigitaliseerde-collecties/manifest/96d683f4-b9b0-9027-1f20-f472f598f4d4&c=&m=&cv=&xywh=-28%2C-125%2C1573%2C2313

If you could give it another quick look, that would be much appreciated!

Pin0 avatar Jun 16 '23 07:06 Pin0

This may be a bug in the UV. We are working on the thumbnail sidebar on another branch: https://universalviewer-la95eptz7-mnemoscene.vercel.app/#?xywh=-559%2C-1%2C2634%2C2064&cv=&iiifManifestId=https%3A%2F%2Fathenaeumcollecties.nl%2Fcollecties%2Fgedigitaliseerde-collecties%2Fmanifest%2F96d683f4-b9b0-9027-1f20-f472f598f4d4

cc @edsilv

stephenwf avatar Jun 16 '23 10:06 stephenwf

I had a look at your Manifest, and it seems fine. I can't see anything that would prevent the UV from working. I think you may need "behaviour": ["paged"] on the manifest to ensure the images appear side-by-side.

@edsilv any ideas on why the thumbnail is coming through as:

/full/200,/0/default.jpg

stephenwf avatar Jun 16 '23 10:06 stephenwf