-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
PNG download on large graphs are broken #31
Comments
I cannot reproduce this issue. What I can reproduce is that the PNG export doesn't even offer a download for that graph. SVG works as expected. |
Very weird that you cannot reproduce the issue. I am using chrome and it is up to date. When opening the image with paint I can see the last pixel used is the 16383th one So this is maybe a limitation of png export. |
I managed to reproduce this bug. The image file indeed exceeds 16383px.
|
I think it is just a limitation of graphviz. |
I think it is not only graphviz.
The binaries I put in the repository is the usual windows version of graphviz, nothing more. @nikeee Is edotor website running on linux ? |
Everything on edotor runs client-side, so in the browser. Maybe it's a limitation by the browser that causes the issue. |
Oh good to know you are ready to close this ticket ? More seriously, you mean graphviz is delivered to browser as (a) full javascript script(s) ? |
Yes. edotor is an entirely static website consisting of HTML and JS. There is no backend that does anything. The Graphviz source that is also used for the native binaries is compiled to JS (using emscripten) in this project: https://github.com/mdaines/viz.js There is also this library: |
Funny I was thinking about webassembly some minutes ago and if graphviz could exist in this state |
From #24:
Here is a large width digraph that causes issues (maybe not what this thread means though):
Actually the digraph is not large enough so that we can think it could cause issue...
The render is actually fine online on edotor but when downloading PNG file, a part of graph is completely cropped.
About 66% of the image width (at right) seems missing.
There is no warning in console in chrome (when graph was even larger).
If I reduce size of edge's label (for example by setting them all to "A"), everywhere goes fine.
large_width_digraph.txt
Originally posted by @IfZen in #24 (comment)
The text was updated successfully, but these errors were encountered: