Skip to content

docs: document the Format constants in the README - #32

Merged
Sreini merged 1 commit into
masterfrom
docs/format-readme
Nov 4, 2026
Merged

Sreini merged 1 commit into
masterfrom
docs/format-readme

Conversation

@Sreini

@Sreini Sreini commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

The README only shows compression, so the Format constants added in 1.10.0 (#31) had no example outside the API docs site.

Adds, after the existing Usage block:

  • a convert example using Format.Jxl, with the full set of constants named
  • the multiple-types case, resolving the output extension via result.Extension
  • a note that the constants are plain strings, so type = "image/jxl" keeps working

Documentation only; no code or version change.

🤖 Generated with Claude Code

The README only showed compression, so the constants added in 1.10.0
had no example outside the API docs site. Adds a convert example using
Format, the multiple-types case, and a note that the plain strings
still work.
@Sreini
Sreini merged commit aa6065a into master Nov 4, 2026
27 checks passed
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