Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-SVG output to STDOUT #2214

Open
twblalock opened this issue Nov 14, 2024 · 0 comments
Open

Support non-SVG output to STDOUT #2214

twblalock opened this issue Nov 14, 2024 · 0 comments

Comments

@twblalock
Copy link

I have a use case where I want to write a diagram to a PNG but instead of writing to a file directly, I want to write to STDOUT.

For example:

d2 diagram.d2 -

cannot be made to generate PNG.

Something like this would work:

d2 diagram.d2 --png -

Or a similar type of flag.

@cyborg-ts cyborg-ts added this to D2 Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant