How do I export to gif? #1530
Replies: 2 comments
-
There's no top-level function right now. You'll have to convert each SVG to PNG: https://github.com/terrastruct/d2/blob/master/lib/png/png.go#L91 And then pass in the PNGs to make the gif: https://github.com/terrastruct/d2/blob/master/lib/xgif/xgif.go#L31 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this function which works:
where the input
text
is SVG.I now want to create
GifForD2()
. The docs say that you can export to gif but I can't see how.Beta Was this translation helpful? Give feedback.
All reactions