Skip to content

feat: JPEG output format with configurable quality#36

Merged
andresilva-cc merged 2 commits intomainfrom
feat/jpeg-output
Mar 19, 2026
Merged

feat: JPEG output format with configurable quality#36
andresilva-cc merged 2 commits intomainfrom
feat/jpeg-output

Conversation

@andresilva-cc
Copy link
Copy Markdown
Contributor

Summary

  • format: 'jpeg' in CompositionConfig and RenderOptions
  • --format jpeg CLI flag (with jpg alias)
  • quality option (1-100, default 90) in config/options and --quality CLI flag
  • omitBackground: false for JPEG (no black fills on transparent areas)
  • Engine name in error messages (was hardcoded to "WebKit")
  • Warning when --quality used with PNG format
  • All website code blocks converted to Shiki syntax highlighting
  • Copy updated: "Export as images" (format-agnostic)

Test plan

  • CLI: PNG, JPEG default, JPEG q50 — correct formats and sizes
  • Library API: format, quality, magic bytes (FF D8 FF), size comparison
  • All 199+ tests pass
  • Website builds cleanly
  • Visual verification of rendered JPEGs

format: 'jpeg' in config/options, --format jpeg CLI flag (jpg alias).
quality option (1-100, default 90), --quality CLI flag.
omitBackground: false for JPEG, engine name in error messages.
All code blocks converted to Shiki syntax highlighting.
Updated docs, README, website, llms-full.txt.
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
grafex Ignored Ignored Preview Mar 19, 2026 8:15pm

@andresilva-cc andresilva-cc merged commit d234417 into main Mar 19, 2026
7 of 8 checks passed
@andresilva-cc andresilva-cc deleted the feat/jpeg-output branch March 19, 2026 20:40
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