3 ms·
I was skeptical at first, thinking it must just embed the raster inside the SVG, but no, this is actually really cool! The author also wrote the accompanying l
by solardev 3y ago
I was skeptical at first, thinking it must just embed the raster inside the SVG, but no, this is actually really cool!
The author also wrote the accompanying library, dom-to-svg: https://github.com/felixfbecker/dom-to-svg https://github.com/felixfbecker/dom-to-svg
It seems to capture the HTML and convert each element to a similar one on SVG. I'm still not sure how it handles raster images (does it just embed them? Vectorize them somehow?) but it's a really cool project. Thanks for sharing!