Skip to content

Add colorKey pipeline op for nodata fill transparency - #9

Merged
pjeweb merged 1 commit into
mainfrom
feature/color-key-op
Aug 26, 2026
Merged

pjeweb merged 1 commit into
mainfrom
feature/color-key-op

Conversation

@pjeweb

@pjeweb pjeweb commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a colorKey raster pipeline op that turns configured #RRGGBB fill colors transparent, so WMS/aerial nodata can be punched out before merge.
  • Default flood starts from the tile edge and already-transparent pixels, so isolated interior matches (roofs, shadows) stay put. fuzz is a per-channel tolerance; fromEdges: false keys every matching pixel.
  • Document the op and cover parse, flood, fuzz, cache-hit, and processor wiring with tests.

Test plan

  • composer test
  • Apply colorKey to a known aerial tile with black nodata and confirm the fill becomes transparent while interior dark roofs remain
  • Confirm fromEdges: false also removes isolated interior matches

@pjeweb
pjeweb merged commit b4d6483 into main Aug 26, 2026
6 checks passed
@pjeweb
pjeweb deleted the feature/color-key-op branch August 26, 2026 14:34
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