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

Closed
twblalock opened this issue Nov 14, 2024 · 3 comments
Closed

Support non-SVG output to STDOUT #2214

twblalock opened this issue Nov 14, 2024 · 3 comments
Labels
cli This issue is related to the CLI (cmd/d2) good first issue Good for newcomers

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
@alixander alixander added good first issue Good for newcomers cli This issue is related to the CLI (cmd/d2) labels Dec 6, 2024
@Maricaya
Copy link
Contributor

hi @alixander , I will work on this as my first contribution to the project

@goldenstein64
Copy link

It seems that this issue was resolved by #2291. Should it be closed?

@alixander
Copy link
Collaborator

Ah you're right, thanks @goldenstein64

@github-project-automation github-project-automation bot moved this to Done in D2 Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli This issue is related to the CLI (cmd/d2) good first issue Good for newcomers
Projects
Status: Done
Development

No branches or pull requests

4 participants