Are images within svgs possible? #60
-
|
I need to put an image in my svg, and have tried the following methods: // imgSrc here is a base64 representation of an image
<image xlink:href="data:image/jpeg;base64,${imgSrc}" x="200" y="20.0" width="100" />and <image href="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" x="200" y="20.0" width="100" height=""/>With no success. If I paste the svg before it's converted into a codepen, everything works fine. The other elements I have in the svg (e.g. text) still render fine. Is this a limitation of the library? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Thank you for your question! As you say, image rendering is not currently supported.
I think the answer is "no". svg2png-wasm is made with |
Beta Was this translation helpful? Give feedback.
Thank you for your question!
As you say, image rendering is not currently supported.
I think the answer is "no".
However, there is no conclusive proof.
svg2png-wasm is made with
resvg(Rust crate). Andresvgcan render images.So I'll try to support image rendering!