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

Low PNG resolution, add DPI switch #18

Open
acorreya opened this issue Feb 7, 2021 · 3 comments
Open

Low PNG resolution, add DPI switch #18

acorreya opened this issue Feb 7, 2021 · 3 comments

Comments

@acorreya
Copy link

acorreya commented Feb 7, 2021

PNG output for imagine/mermaid has low resolution for screen and unimaginable for print. Please set a switch for controlling/increasing the DPI for PNG images to 150 dpi, 300 dpi etc. Thanks for the great work!

@hertogp
Copy link
Owner

hertogp commented Mar 2, 2021

Hi @acorreya,
The png is actually created by the mmcd utility, not by imagine itself. However, if mmcd includes a switch to set the dpi you can include that in the options for your code block:

```{.mermaid im_opt="-w 600 -H 1200"}
...
```

but my version of mmcd doesn't seem to do much with those extra params. See #3.

Development seems to have been moved to a new repo, mermaid, maybe you could re-raise the question there?

@pbsds
Copy link

pbsds commented Nov 13, 2021

Seems like there now is a -s switch, defaulting to 1, which sets the scale.
I use im_opt="-s 3".

@hertogp
Copy link
Owner

hertogp commented Nov 28, 2021

thanks for the tip!

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