Skip to content

Improve Image and Presentation API compatibility#68

Draft
lutzhelm wants to merge 8 commits intomainfrom
fix-63-support-iiif-image-api-3
Draft

Improve Image and Presentation API compatibility#68
lutzhelm wants to merge 8 commits intomainfrom
fix-63-support-iiif-image-api-3

Conversation

@lutzhelm
Copy link
Contributor

@lutzhelm lutzhelm commented Nov 8, 2024

  • Use image resolution from info response instead of Canvas - Image service may have a different resolution than the Canvas
  • Use correct canonical image size URL parameter (full vs. max / w, vs. w,h) dependent on IIIF Image API version
  • Offer manifest renderings for download, not only sequence renderings
  • Ensure that the offered download links do not exceed maxArea / maxWidth / maxHeight
  • Fix IIIF Presentation 3 not supported #63 along the way
  • Offer any existing static image URL if no image service is present

The plugin also does not offer a download for every image service beyond the first; this will need to be adressed outside this PR. -> #91

@lutzhelm lutzhelm changed the title Fix #63 Improve Image and Presentation API compatibility Nov 14, 2024
@lutzhelm lutzhelm force-pushed the fix-63-support-iiif-image-api-3 branch from 34e2237 to 321e892 Compare November 22, 2024 17:12
@lutzhelm lutzhelm force-pushed the fix-63-support-iiif-image-api-3 branch from 321e892 to e28c96c Compare July 23, 2025 10:46
Copy link

@phil-plencner-hl phil-plencner-hl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lutzhelm,

At Harvard we recently discovered were are having the same issue with version 3 iiif manifests returning inaccurate download links. I tried some of our manifests against this branch and they work correctly. Here are the ones I tried:

The version 2 iiiif manifests of the same objects also continue to work correctly on this branch:

From my perspective this is working and can be merged. Is that something we can do, or should we bring it up at the next Mirador Community Call?

cc: @marlo-longley @cbeer

@phil-plencner-hl
Copy link

I'm also wondering if there is a way to port these changes to a Mirador 3 compatible version of the plugin? We have not upgraded to 4 yet, but would like the download bug fix if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IIIF Presentation 3 not supported

2 participants