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

Generate Preview Images from plantuml.urlServer #34

Merged
merged 4 commits into from
Apr 26, 2017

Conversation

rado0x54
Copy link
Contributor

Hey,

we are running our own instance of a plantuml server and would like to be able to utilize image creation from it, instead of the local java process. It's quite a lot faster there and our users are not required to setup plantuml locally.

I extended the code accordingly and added an option plantuml.previewFromUrlServer that is "false" by default.

Let me know if you want me to further refine my solution.

I would be happy if the changes could be merged back to the main branch.

if (config.previewFromUrlServer) {
task = httpExporter.exportToBuffer(diagram, previewFileType);
} else {
task = exporter.exportToBuffer(diagram, previewFileType);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In local export, this.process should be recorded for later processing of prevent from starting to many processes.

@qjebbs qjebbs merged commit 355d248 into qjebbs:master Apr 26, 2017
@qjebbs
Copy link
Owner

qjebbs commented Apr 26, 2017

Awesome work! Thank you!
I'm very glad to have you guys refine this project together!

PS: Generate from server doesn't work properly while diagrams got !include file.wsd inside, for now.

@qjebbs qjebbs mentioned this pull request Jun 11, 2017
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