Skip to content

Replace Dimensions with Geometry#62

Merged
mbklein merged 6 commits into
mainfrom
55-56-better-image-geometry
Apr 23, 2026
Merged

Replace Dimensions with Geometry#62
mbklein merged 6 commits into
mainfrom
55-56-better-image-geometry

Conversation

@mbklein
Copy link
Copy Markdown
Member

@mbklein mbklein commented Apr 22, 2026

Note: This PR includes a breaking change that will require a major version bump.

This PR replaces Dimensions (and the DimensionFunction) with a more inclusive ImageGeometry (and GeometryFunction). Instead of an array of width/height pairs, ImageGeometry includes depth (pyramid pages) and tile dimensions. This allows info.json to report real tile width and height, and provides better options for probing/calculating missing values.

Fixes #55
Fixed #56

@mbklein mbklein force-pushed the 55-56-better-image-geometry branch 4 times, most recently from 0f0122d to 04b163c Compare April 22, 2026 17:21
@mbklein mbklein marked this pull request as ready for review April 22, 2026 17:26
@mbklein mbklein force-pushed the 55-56-better-image-geometry branch 2 times, most recently from e17c3db to f4e9f8a Compare April 22, 2026 20:14
mbklein added 2 commits April 22, 2026 17:43
Use real tile sizes for info.json (if available)
Add tile size probe for TIFF and JPEG 2000
@mbklein mbklein force-pushed the 55-56-better-image-geometry branch from f4e9f8a to ebc6672 Compare April 22, 2026 22:58
@mbklein mbklein merged commit 37cf77d into main Apr 23, 2026
10 checks passed
@mbklein mbklein deleted the 55-56-better-image-geometry branch April 23, 2026 18:19
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.

info.json tile size should reflect reality DimensionFunction needs to support more geometry

1 participant