Skip to content

fix: bump epaper-dithering to 5.0.8 (tone=auto NaN collapse)#122

Merged
g4bri3lDev merged 1 commit into
mainfrom
fix/epaper-dithering-508
Jul 6, 2026
Merged

fix: bump epaper-dithering to 5.0.8 (tone=auto NaN collapse)#122
g4bri3lDev merged 1 commit into
mainfrom
fix/epaper-dithering-508

Conversation

@g4bri3lDev

Copy link
Copy Markdown
Member

epaper-dithering ≤5.0.7 collapses crisp bilevel bright images to an all-black frame under tone="auto": with ≥2% pure-black pixels the 2nd-percentile luminance is 0.0, the Reinhard log-skew strength lands epsilon-negative, (-x).powf(1.4) is NaN, and NaN resolves every pixel to palette index 0. Surfaced in the HA integration: any text-on-white drawcustom frame (odl-renderer output is unantialiased) uploaded as 69 compressed bytes of black.

5.0.8 ships the fixed core (OpenDisplay/epaper-dithering#51 + core 6765760).

Test plan

  • real repro against 5.0.8: bilevel white 800×480 + measured MONO palette + tone=auto → correct histogram (was: 384,000 × black)
  • pytest -q → 517 passed

🤖 Generated with Claude Code

epaper-dithering 5.0.6 collapses crisp bilevel bright images to an
all-black frame under tone="auto" (log-skew strength goes NaN via
(-x).powf(1.4)). 5.0.8 ships the fixed core. Verified against the real
reproduction: bilevel white 800x480 frame + measured MONO palette +
tone=auto now dithers correctly instead of returning 384000 black
pixels.
@g4bri3lDev g4bri3lDev merged commit 4981bb7 into main Jul 6, 2026
5 checks passed
@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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