Fix IIIF Level 0 thumbnail resolution - #8
Merged
Conversation
ewlarson
marked this pull request as ready for review
August 13, 2026 20:36
ewlarson
added a commit
that referenced
this pull request
Aug 21, 2026
Fix IIIF Level 0 thumbnail resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
info.jsondocuments according to their advertised capabilities.!800,800request.dataset_manifest.jsonare not fetched as images.info.json→ rendition → image-cache worker path.Root cause
The affected UNR records expose static IIIF Image API Level 0 services. OGM rewrote those sources to
/full/!800,800/0/default.jpg, but Level 0 only guarantees its advertised sizes; the generated request returned 403 even though a valid rendition existed. Separately, the broad manifest heuristic classifieddataset_manifest.jsonas a IIIF Presentation manifest, causing JSON to be processed as image content.Impact
After deployment, the existing
meta.ui.thumbnail_urlcontract remains unchanged. An uncached request queues generation and returns the non-cacheable fallback while processing; subsequent requests redirect to the real cached thumbnail.Validation
59 passedacross focused service, worker, and endpoint testsruff checkpassed for all changed filesruff format --checkpassed for all changed filesgit diff --checkpassed/full/924,/0/default.jpgreturns200 OKwithContent-Type: image/jpeg