universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

Missing support for Image API v3.0

Open ra-magnus-welander opened this issue 4 years ago • 0 comments

UV version:

 [email protected] and v4

I'm submitting a:

  • [X] bug report
  • [ ] feature request => please use the user stories repo
  • [ ] support request => Please do not submit support requests here, use stackoverflow

Current behavior:

In a presentation v3 manifest we reference a v3 image service. The UV does not recognize this and decides we're an unknown level0 Image API.

Expected behavior:

The UV would recognize our v3 image service, call the info.json and adjust its behavior accordingly.

Steps to reproduce:

Create a manifest with images using ImageService3.

Related code: manifest snippet:

              "body": {
                "id": "http://localhost:58982/arkis!C0002787_00001/full/max/0/default.jpg",
                "type": "Image",
                "width": 3507,
                "height": 2480,
                "format": "image/jpeg",
                "service": [
                  {
                    "id": "http://localhost:58982/arkis!C0002787_00001",
                    "type": "ImageService3",
                    "profile": "level1"
                  }
                ]
              },

Other information:

One of the problems is apparently with manifesto, which does not recognize ImageService3 profiles. See https://github.com/IIIF-Commons/manifesto/blob/master/src/Utils.ts and the function isImageProfile().

ra-magnus-welander avatar Oct 27 '21 13:10 ra-magnus-welander