-
Notifications
You must be signed in to change notification settings - Fork 11
SVG support #7
Comments
I don't know if node-canvas v2 can be used for this. They did add support for things we could perhaps use. Perhaps we could read the svg elements innerHTML after I don't know enough about Lotties SVG renderer or even SVG to know if it's even realistic. With canvas you don't change the actual "dom" of the canvas element. I won't be exploring this myself, but will keep the issue open. PR's are welcome. |
I think based on recent advancements. if we just update the dependencies and before doing |
I've given my answer ^ |
Hi @friday, I am getting |
Please create a new issue, since that doesn't look directly related to this feature suggestion. I just added issue templates to make this easier. Are you trying to render an animation with text exported with glyphs for all the characters in your text? Are you using the latest version (v1.0.0)? |
puppeteer-lottie, an alternative to lottie-node was just published. It uses puppeteer and Chrome headless rather than Node.js and supports SVG. |
I love puppeteer-lottie because everything just works, but its very slow. Your implementation is about 20 times faster in my tests and I have a requirement for speed. However anything slightly complicated seems to render a blank png. I started looking into the possibility of using svgdom https://github.com/svgdotjs/svgdom do you think this could be swapped out for canvas? |
@galipmedia Feel free to try. I don't have time for it myself unfortunately. |
Seeing the recent updates in node-canvas and jsdom. Can you make lottie animations in svg work?
The text was updated successfully, but these errors were encountered: