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

PlantUML, C4PlantUML and GraphViz low quality on PNG format #1565

Closed
yoopyman opened this issue Jun 8, 2023 · 2 comments
Closed

PlantUML, C4PlantUML and GraphViz low quality on PNG format #1565

yoopyman opened this issue Jun 8, 2023 · 2 comments

Comments

@yoopyman
Copy link

yoopyman commented Jun 8, 2023

When trying to generate the graphviz/dot diagrams with PlantUML or C4PlantUML or GraphViz
in the PNG format the image looks like this :

image

generated with link:

https://kroki.io/graphviz/png/eNp1kMFOwzAQRO_9isV3-IBGgQsSnBBXFHrYxkti1V1btkNVVf13vHGTVkG92TOeyZto0wX0PbzBaQXAThM0P44T456gBvWOrC2R2lTZJt3dt7OvAx6gyQcAi1uy8uJVNARv2jQEUtXoxh695AO1SZSx_WB4Gf5yg8gPi5j7RTvHuoFi_PdVoyH1dPzmYpv0sujQBveO9VzjneG0rPkcxUCeMJG2uS456YUo-y-bnu6Pmv7J43PBnGZOd2hutlJUVcYK9Rbb3Q3UOs7v1_G6OGsX5mvHh1MleBqJAvKuFtQCWBBKqhIOkc-r8x9lvpbL

When the same diagram is generated as SVG it looks like this:

image

generated with link:

https://kroki.io/graphviz/svg/eNp1kMFOwzAQRO_9isV3-IBGgQsSnBBXFHrYxkti1V1btkNVVf13vHGTVkG92TOeyZto0wX0PbzBaQXAThM0P44T456gBvWOrC2R2lTZJt3dt7OvAx6gyQcAi1uy8uJVNARv2jQEUtXoxh695AO1SZSx_WB4Gf5yg8gPi5j7RTvHuoFi_PdVoyH1dPzmYpv0sujQBveO9VzjneG0rPkcxUCeMJG2uS456YUo-y-bnu6Pmv7J43PBnGZOd2hutlJUVcYK9Rbb3Q3UOs7v1_G6OGsX5mvHh1MleBqJAvKuFtQCWBBKqhIOkc-r8x9lvpbL

At the same DPI the image are different. This problem appeared in the latest version.
On windows using the version 0.20.0 this problem is not present. On the 0.20.0 the SVG and PNG image are identical.
Maybe the engines (or the format converter if used) needs some additional configuration regarding the quality or some antialiasing when transforming to PNG to eliminate this issue.

@ggrossetie
Copy link
Member

We are using the latest version of GraphViz. I will need to investigate why the quality is different.

@ggrossetie
Copy link
Member

Will be fixed in #1568

8.0.4 8.0.5
804 805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants