Skip to content

feat: support transparent PNG rendering and CLI background color selection#65

Merged
erweixin merged 2 commits intoerweixin:mainfrom
techwizrd:transparent-png-support
May 9, 2026
Merged

feat: support transparent PNG rendering and CLI background color selection#65
erweixin merged 2 commits intoerweixin:mainfrom
techwizrd:transparent-png-support

Conversation

@techwizrd
Copy link
Copy Markdown
Contributor

Summary

  • add transparent background support to PNG rendering via RenderOptions.background_color
  • add CLI --background-color support, including transparent as a named color
  • add regression coverage for transparent and default opaque PNG output

Testing

  • cargo test -p ratex-types color
  • cargo test -p ratex-render

@techwizrd techwizrd marked this pull request as ready for review May 9, 2026 14:38
@erweixin
Copy link
Copy Markdown
Owner

erweixin commented May 9, 2026

Thanks for the PR! Adding background_color to the rendering options is a great improvement!

@erweixin erweixin merged commit 3366ab2 into erweixin:main May 9, 2026
3 checks passed
@techwizrd
Copy link
Copy Markdown
Contributor Author

Thanks!

@techwizrd techwizrd deleted the transparent-png-support branch May 10, 2026 15:03
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.

2 participants