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

Export drawio file to PNG on a server (without X11) #830

Closed
stderr-mila opened this issue Mar 30, 2020 · 4 comments
Closed

Export drawio file to PNG on a server (without X11) #830

stderr-mila opened this issue Mar 30, 2020 · 4 comments

Comments

@stderr-mila
Copy link

stderr-mila commented Mar 30, 2020

Hello,

First of, thank you for draw.io!

Is it possible to export a ".drawio" file to a "png" on a server (rather than on desktop) OS?
I am able to do the export from the CLI using drawio-desktop on a Ubuntu desktop but not on an Ubuntu server.
Is there a tool or method to do so?

@davidjgraph
Copy link
Collaborator

The PDF and image generation for IE 11 we use with the online version uses chrome in headless. That said, check that we have it set in headless mode, since we run it on a Mac farm, which isn't headless.

@stderr-mila
Copy link
Author

stderr-mila commented Mar 30, 2020

Thank you for your answer.

I am not sure to get your answer right. What stack do you use to convert a ".drawio" file into ".png"?

Would you have any pointer with regards to files or bits of code that I could look into in order to try and reproduce the feature? (the idea is to get the conversion done by Jenkins on, as said previously, a server without X11)

@modelmat
Copy link

modelmat commented Apr 3, 2020

You can use xvfb-run.
jgraph/drawio-desktop#146

@davidjgraph
Copy link
Collaborator

Sorry, forgot to link the project... https://github.com/jgraph/draw-image-export2

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

3 participants