-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Mermaid PNG support #507
Comments
For reference, Mermaid CLI is using |
I don't understand what that means. The return is an SVG and not a PNG. Renaming it to PNG doesn't help either. Internally it's not PNG data. (sorry - don't know much about puppeteer if I'm missing something obvious here). And pushing the result into an API that accepts PNG's results in a blank image. |
Sorry I wasn't clear, I was just posting a possible solution that I found. Another idea would be to use the browser to convert a SVG to a PNG using
No worries, Puppeteer is a Node library that we use to run and interact with a headless Chrome browser. |
I am on it :) |
It would be awesome if there were PNG support for Mermaid charts. SVG is not as usable from an API point of view.
The text was updated successfully, but these errors were encountered: