Skip to content

docs: add target-size mode and alpha fixture to the roadmap - #62

Merged
nucliweb merged 1 commit into
mainfrom
docs/roadmap-target-size-alpha
Nov 27, 2026
Merged

nucliweb merged 1 commit into
mainfrom
docs/roadmap-target-size-alpha

Conversation

@nucliweb

Copy link
Copy Markdown
Owner

Summary

Adds roadmap ideas from a review of browser-side image encoding research:

  • Target-size mode: the inverse of the equal-quality search. Given a byte budget, report the ssimulacra2 each codec reaches at that size, with explicit KB/KiB units.
  • Generated alpha-fidelity fixture: four alpha classes (opaque, 128, 17, transparent with non-zero RGB) for a deterministic lossless round-trip test and to show which encoders keep RGB under A = 0 (cwebp -exact, cjxl --keep_invisible=1).
  • Output format check: verify each encoder's output by its magic bytes.
  • Tool versions in the results: extended with input SHA-256s and a JSON output carrying a schemaVersion.

Documentation only; no code changes.

Adds a target-size mode (best quality per codec at a byte budget), a generated alpha-fidelity fixture for lossless round-trip tests and A = 0 handling, an output format check by magic bytes, and extends the tool-versions idea with input SHA-256s and a JSON output.
@nucliweb
nucliweb merged commit d9382e9 into main Nov 27, 2026
1 check passed
@nucliweb
nucliweb deleted the docs/roadmap-target-size-alpha branch November 27, 2026 06:39
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