Skip to content

Add DZI generator scripts and 16-level testgrid (32768×32768)#381

Closed
mattleibow wants to merge 1 commit intomainfrom
feature/testgrid-16-levels
Closed

Add DZI generator scripts and 16-level testgrid (32768×32768)#381
mattleibow wants to merge 1 commit intomainfrom
feature/testgrid-16-levels

Conversation

@mattleibow
Copy link
Collaborator

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.cs

General-purpose DZI tile generator that takes any source image and slices it into a Deep Zoom pyramid.

  • Supports --tile-size, --overlap, --format (png/jpg), --quality options
  • Usage: dotnet run scripts/generate-dzi.cs -- source.png output/ --tile-size 256 --overlap 1

scripts/generate-testgrid.cs

Procedural 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.

  • Usage: dotnet run scripts/generate-testgrid.cs (writes to resources/collections/testgrid/)

Testgrid

Property Old New
Image size 8192×8192 32768×32768
Levels 13 (0-12) 16 (0-15)
Tile size 256px 256px
Overlap 0px 1px
Total tiles ~1365 21,853

Closes #380 (superseded by this PR which includes both the script and regenerated assets).

…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>
@mattleibow
Copy link
Collaborator Author

Consolidating testgrid work into PR #379 (feature/deep-zoom-static-preview)

@mattleibow mattleibow closed this Mar 15, 2026
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>
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.

1 participant