Skip to content

Can you get the SVG text rather than PNG bytes? #164

Answered by martinRenou
dsblank asked this question in Q&A
Discussion options

You must be logged in to vote

It is not possible. Unfortunately, this is not part of the web 2D canvas API, so it might be difficult to implement this in a non-hacky way.

The drawSVG library is a great library that might be better suited for this purpose.

It might be possible for ipycanvas to play nicely with drawSvg, to have a bridge from one to the other.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dsblank
Comment options

Answer selected by dsblank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants