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

Need to install librsvg on Mac to use SVG format #108

Open
phatmann opened this issue Apr 13, 2023 · 1 comment
Open

Need to install librsvg on Mac to use SVG format #108

phatmann opened this issue Apr 13, 2023 · 1 comment

Comments

@phatmann
Copy link

phatmann commented Apr 13, 2023

On macOS if you run mermaid-filter with the MERMAID_FILTER_FORMAT environment variable set to "svg", you will get the error:

Could not convert image /path/to/image/file: check that rsvg-convert is in path.
rsvg-convert: createProcess: posix_spawnp: does not exist (No such file or directory)

I ran brew install librsvg and that fixed the dependency issue. Either the dependencies need to be updated or the docs updated.

However, my converted diagrams have no text in them, so I perhaps I am missing a font. Any idea how to fix this?

@Kalankaboom
Copy link

I had the same issue, but found the solution here (use format=pdf).

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

2 participants