Skip to content

IIIF conformance fixes#66

Merged
mbklein merged 1 commit into
mainfrom
iiif-conformance-fixes
Jul 22, 2026
Merged

IIIF conformance fixes#66
mbklein merged 1 commit into
mainfrom
iiif-conformance-fixes

Conversation

@bmquinn

@bmquinn bmquinn commented Jul 21, 2026

Copy link
Copy Markdown
Member

Description

Improve IIIF Image API conformance and make image transformations more robust across file-backed and streamed inputs:

  • Validate that rotation values are within the IIIF-supported range of 0–360 degrees.
  • Reject regions whose origins or calculated dimensions fall outside the image bounds.
  • Keep scaled regions within the selected source resolution.
  • Ensure calculated output dimensions are at least one pixel.
  • Avoid unnecessary resize operations when the requested and extracted dimensions match.
  • Update Sharp type imports and add test coverage for non-file streams.

Example work in Northwestern University Libraries digital collections with Requested size requires upscaling errors this PR should fix: https://dc.library.northwestern.edu/items/13ea3182-4239-457a-8c2d-a58d6e259b63

@bmquinn bmquinn changed the title Iiif conformance fixes IIIF conformance fixes Jul 21, 2026
@mbklein
mbklein force-pushed the iiif-conformance-fixes branch from e814795 to b6fe628 Compare July 22, 2026 15:51
Fix build by checking in package-lock.json again

Update @types/node
@mbklein
mbklein force-pushed the iiif-conformance-fixes branch from b6fe628 to 4f8a9dd Compare July 22, 2026 16:26
@mbklein
mbklein merged commit c54e5ae into main Jul 22, 2026
7 of 10 checks passed
@mbklein
mbklein deleted the iiif-conformance-fixes branch July 22, 2026 16:35
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.

2 participants