Skip to content

feat(render): load an external colour profile via TILE57_COLORPROFILE#22

Merged
beetlebugorg merged 1 commit into
mainfrom
feat/ink-colorprofile-env
Jul 14, 2026
Merged

feat(render): load an external colour profile via TILE57_COLORPROFILE#22
beetlebugorg merged 1 commit into
mainfrom
feat/ink-colorprofile-env

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

The render path always used the colour profile embedded in the library. Add a TILE57_COLORPROFILE override — read via the portrayal C shim, mirroring the TILE57_S101_RULES on-disk rules override — so a host can recolour charts from an on-disk colorProfile.xml with no rebuild (e.g. a monochrome "ink" profile for e-ink). sharedColors() (the viewer's render path) and the tile57 png/pdf tool both honour it; an unset/unreadable path falls back to the embedded profile.

The render path always used the colour profile embedded in the library.
Add a TILE57_COLORPROFILE override — read via the portrayal C shim,
mirroring the TILE57_S101_RULES on-disk rules override — so a host can
recolour charts from an on-disk colorProfile.xml with no rebuild (e.g. a
monochrome "ink" profile for e-ink). sharedColors() (the viewer's render
path) and the `tile57 png`/`pdf` tool both honour it; an unset/unreadable
path falls back to the embedded profile.
@beetlebugorg beetlebugorg merged commit 652cc11 into main Jul 14, 2026
5 checks passed
@beetlebugorg beetlebugorg deleted the feat/ink-colorprofile-env branch July 14, 2026 20:02
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