Add DZI generator scripts and 16-level testgrid (32768×32768)#381
Closed
mattleibow wants to merge 1 commit intomainfrom
Closed
Add DZI generator scripts and 16-level testgrid (32768×32768)#381mattleibow wants to merge 1 commit intomainfrom
mattleibow wants to merge 1 commit intomainfrom
Conversation
…68×32768) - scripts/generate-dzi.cs: .NET 10 file-based app for generating Deep Zoom images from a source image. Supports --tile-size, --overlap, --format, --quality options. - scripts/generate-testgrid.cs: procedural test-grid DZI generator that creates a 32768×32768 DZI (16 levels, 0-15) tile-by-tile without loading a full source image. Each 256×256 tile is drawn directly from a 64×64 coloured grid formula, keeping memory usage minimal regardless of output resolution. - resources/collections/testgrid/: regenerated at 32768×32768 - 16 levels (0-15), 256px tiles, 1px overlap - 21,853 PNG tiles across all levels - testgrid.dzi updated to Width="32768" Height="32768" Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
Author
|
Consolidating testgrid work into PR #379 (feature/deep-zoom-static-preview) |
mattleibow
added a commit
that referenced
this pull request
Mar 15, 2026
- Gradient: diagonal warm (peach, 55α) → cool (blue, 55α) tint across full image
- Computed per-tile using image-space coordinates for seamless consistency at all zoom levels
- Color blocks: 1024×1024px (4×4 tiles at max zoom), no borders, pastel palette
- Level labels: 'L{level}' in top-left corner of each tile
- Close PR #381 (testgrid work consolidated here)
- Regenerate all 21,853 tiles
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Adds two reusable .NET 10 file-based app scripts for working with Deep Zoom Images, and regenerates the testgrid collection at full 16-level resolution.
Scripts
scripts/generate-dzi.csGeneral-purpose DZI tile generator that takes any source image and slices it into a Deep Zoom pyramid.
--tile-size,--overlap,--format(png/jpg),--qualityoptionsdotnet run scripts/generate-dzi.cs -- source.png output/ --tile-size 256 --overlap 1scripts/generate-testgrid.csProcedural test-grid generator — creates a 32768×32768 DZI (16 levels) without a source image. Each tile is drawn directly from a 64×64 coloured grid formula, so memory usage stays tiny even at gigapixel scale.
dotnet run scripts/generate-testgrid.cs(writes toresources/collections/testgrid/)Testgrid
Closes #380 (superseded by this PR which includes both the script and regenerated assets).