|
|
|
|
|
by simonbw
993 days ago
|
|
I made something almost exactly like this before. I needed to convert svgs to pngs and have them display the same way they looked in the browser. It turned out that spinning up chromium and taking a screenshot was the easiest thing way to do that. I think I used puppeteer. Headless Chrome seems like it should be able to do what you want pretty easily.
https://developer.chrome.com/blog/headless-chrome/ |
|