Skip to content

v1.4.1

Latest

Choose a tag to compare

@Utzel-Butzel Utzel-Butzel released this 11 Nov 08:49

EPD Optimizer 1.4.1 fixes error diffusion artifacts caused by source colors outside a calibrated display palette's reachable gamut.

Fixed

  • Project source colors onto reachable palette mixtures before native error diffusion, reducing colored speckles and damaged strokes in hard black-and-white graphics without requiring text protection (#34).
  • Preserve signed, fractional diffusion errors in JavaScript and RGB WASM. Incoming errors are not clipped back into byte RGB.
  • Support palettes with up to eight distinct colors, including degenerate palettes, and longer collinear grayscale palettes. Larger non-collinear palettes retain the previous behavior.

Floyd–Steinberg, RGB matching and non-serpentine scanning remain the library defaults. The correction also affects photographs; it does not guarantee exact preservation of text adjoining photographic content. Other dithering algorithms are unchanged.

Documentation

  • Explain the gamut correction, supported palettes and limitations, with a reproducible comparison image.
  • Add photographs of the panel measurement setup (#32, #33).

Validation

  • 63 tests passed, including JS/WASM parity across all diffusion kernels and scan directions.
  • TypeScript checking and the demo production build passed.
  • Rebuilding WASM reproduces the committed binary and embedded module.
  • The packed npm package was installed separately and checked through ESM and CommonJS, with JS/WASM/auto output parity, sharp black-and-white edges and blue-noise asset loading.

Full changelog: v1.4.0...v1.4.1