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

Save as PNG #4

Open
tk0miya opened this issue May 6, 2018 · 6 comments
Open

Save as PNG #4

tk0miya opened this issue May 6, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@tk0miya
Copy link
Contributor

tk0miya commented May 6, 2018

That would be an awesome feature. Google gives some hints, but I haven't got enough time to dig into this yet.


@tk0miya tk0miya added the bug Something isn't working label May 6, 2018
@tk0miya
Copy link
Contributor Author

tk0miya commented May 6, 2018

From Chad Whitacre on 2015-06-10 14:20:51+00:00

Here's a hack from mbostock using the CANVAS element as a go-between.

@tk0miya
Copy link
Contributor Author

tk0miya commented May 6, 2018

From Takeshi KOMIYA on 2015-06-12 14:08:50+00:00

The interactive shell is based on blockdiag. So, it already has capability of saving as PNG.

but I do not provide the feature.
because GAE does not support to install Pillow library by user.
And another reason is that generating PNG image is a heavy process.
if I provide the feature, it wastes CPU times and it causes service termination from depletion of free time of GAE.

Perhaps, moving to heroku resolve these problems.
but I don't have any time for that.

@tk0miya
Copy link
Contributor Author

tk0miya commented May 6, 2018

From anatoly techtonik on 2015-06-14 08:18:26+00:00

The links to canvas element is should provide browser-only solution, but that didn't work for me (yet?)

@tk0miya
Copy link
Contributor Author

tk0miya commented May 6, 2018

From Takeshi KOMIYA on 2015-06-30 14:39:50+00:00

Maybe, it caused from that blockdiag and interactive shell do not support canvas element.
They use svg element.

@tk0miya
Copy link
Contributor Author

tk0miya commented May 6, 2018

From anatoly techtonik on 2015-07-01 14:44:44+00:00

It seems like I was able to get SVG rendered to CANVAS and copied to clipboard as PNG. But my goal was to copy SVG directly to clipboard, and this goal failed - https://code.google.com/p/chromium/issues/detail?id=504700, and I didn't save a reference code for previous attempt.

@tk0miya
Copy link
Contributor Author

tk0miya commented May 6, 2018

From anatoly techtonik on 2017-05-13 13:14:08+00:00

See https://bitbucket.org/blockdiag/blockdiag_interactive_shell/pull-requests/8/add-ability-to-save-png/diff for the fix.

techtonik added a commit to techtonik/blockdiag_interactive_shell that referenced this issue Jun 29, 2020
techtonik added a commit to techtonik/blockdiag_interactive_shell that referenced this issue Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant