-
Notifications
You must be signed in to change notification settings - Fork 8
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
Seems Imagemagick didn't handle SVG well as expected. #13
Comments
Thanks @suliveevil. will get back to you on this. As some level this is blocked by #8 from my end. It would be great if eventually d2 supports pngs. SVG's just don't play as well with emacs. I think I can get it to work, but I need to fix #8 first |
This a more general issue with imagemagik and svgs |
The way I see it, there are two fixes:
|
Or we may should find another tool to convert svg to png? |
yea...possible. i'll need to look into it and get back on this. |
referencing here #8 |
since this is an emacs related issue, I don't see an easy way around this without saying "upgrade your emacs", however I have added support for a complementing method at #19 , which allows you to open up the browser directly from emacs through the new supported commands:
This allows the browser to render the svg, which should work pretty well. |
d2 is able to convert to png, e.g. we also ran into some subpar svg rendering when building the Obsidian integration. we got around this by base64 encoding the SVGs. didn't end up going with that in the end, but it did work |
The text was updated successfully, but these errors were encountered: