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

Dynamic SVG export Theme using the CLI #1810

Open
2 tasks done
guigur opened this issue Jul 10, 2024 · 3 comments
Open
2 tasks done

Dynamic SVG export Theme using the CLI #1810

guigur opened this issue Jul 10, 2024 · 3 comments

Comments

@guigur
Copy link

guigur commented Jul 10, 2024

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
Hello, I'm trying to auto-export my drawio diagram with automatic themes with the option --svg-theme.
But it seems that the CLI does not support the automatic SVG theme.
I'm version 24.6.4 on Linux.

Describe the solution you'd like
Allow the CLI to export in automatic mode (now only Light and Dark).
Same thing as jgraph/drawio#3147 but with the CLI.

Additional context
Capture d’écran 2024-07-10 à 01 49 11

@davidjgraph
Copy link
Contributor

I don't understand what you did exactly, using what command, using what binary and what the result was.

@guigur
Copy link
Author

guigur commented Jul 10, 2024

Hi, sorry if I wasn't clear.

I'm exporting my drawio diagrams into SVGs using this command:

/opt/drawio/drawio diagram.drawio -x diagram.svg -f svg

Looking through the helper dialog

/opt/drawio/drawio --help

There is an option --svg-theme I can choose between dark and light but not an auto mode like on the desktop app

As for the binary, it's this onedrawio-amd64-24.6.4.deb

@davidjgraph davidjgraph transferred this issue from jgraph/drawio Jul 10, 2024
@guigur
Copy link
Author

guigur commented Jul 10, 2024

#1452

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

No branches or pull requests

2 participants