Skip to content

Conversation

@will-moore
Copy link
Collaborator

This fixes the Z-downsampling issue reported at BioNGFF#16

We add an originalSizeZ attribute to every ZarrPixelSource in the pyramid so that each array knows if it is smaller than the original. Then, we can use that ratio to adjust the chosen z index when we choose the indecies to load from the zarr array.

To test (images which are downsampled in Z):

Screenshot of the bigger image above showing a mixture of high-resolution tiles loaded amongst lower resolution tiles - both coming from different Z sections but are compatible with each other:

Screenshot 2025-11-19 at 13 49 35

@dbmi-svc-checkmarx
Copy link

dbmi-svc-checkmarx commented Nov 19, 2025

Logo
Checkmarx One – Scan Summary & Details32f330dc-c6f8-4c80-a11d-2ae8779ac8f0

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to reach out to us for assistance.

Just send a PR comment with @Checkmarx followed by a natural language request.

Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR

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