Skip to content

feat: Support gzip and zstd compressed tiles in the tileset#2

Merged
kinkard merged 2 commits into
mainfrom
support-compressed-tiles-in-tarball
May 13, 2026
Merged

feat: Support gzip and zstd compressed tiles in the tileset#2
kinkard merged 2 commits into
mainfrom
support-compressed-tiles-in-tarball

Conversation

@kinkard
Copy link
Copy Markdown
Member

@kinkard kinkard commented May 13, 2026

closes #1

This PR introduces support for tarballs with gzip- or zstd-compressed (.gph.gz / .gph.zst) tiles. On-disk compression is sniffed from the first tile's filename at startup and assumed uniform across the archive.

Source Accept-Encoding Response Work
Plain plain raw bytes (decode is a no-op)
Plain gzip gzip encode → gzip
Plain zstd zstd encode → zstd
Plain gzip, zstd zstd encode → zstd (prefer zstd)
Gzip plain decode
Gzip gzip gzip passthrough
Gzip zstd zstd decode → encode zstd
Gzip gzip, zstd gzip passthrough (beats re-encode)
Zstd plain decode
Zstd gzip gzip decode → encode gzip
Zstd zstd zstd passthrough
Zstd gzip, zstd zstd passthrough (beats re-encode)

And also adds zstd as an output option (was gzip-only).

@kinkard kinkard merged commit 3d823e8 into main May 13, 2026
2 checks passed
@kinkard kinkard deleted the support-compressed-tiles-in-tarball branch May 13, 2026 14:52
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.

handle compressed tiles from tar archive

1 participant