I want to make an SVG that includes another SVG icon I have as an <image> so I can save off the colored result. But, when I try to export it, I only see the rectangle, not the image. Is there a way I can make an SVG that contains an <image>, and export the results?
Interesting. So you can use .text() with a file attachment of an SVG to get at some of the codestuffs. Iād have to say I donāt understand the syntax of the href you are making, but can confirm this works nicely. Any insight into how this works and why this is different than referencing the src from the image() version?
The crucial difference in this case is that image.url is just a pointer to a remote resource (which stays on observableās servers), at the address static.observableusercontent.com/files/004d5688321ā¦
whereas the data url contains the actual data (contents) of the image, without having to look it up on the net.