Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
21–30 of 45 posts
Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#22Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#23Earlier quoted context omitted.
Thank you for testing it out and sharing the screenshots! I’ve run some performance tests using Vitest Bench, and SnapDOM was faster. I also created a few manual demos, and SnapDOM won in both speed and accuracy. That said, I still need to run more real-world tests. So, thanks again for your help!
How can svg be faster, and especially more accurate (lets throw some IMG or CSS shadows for fun) than canvas?
Whether that's faster or more reliable, I don't know. Seems likely to render different depending on where you view the SVG (especially out of browsers).
[0]: https://github.com/search?q=repo%3Azumerlab%2Fsnapdom%20fore...
Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#24Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#25I found puppeteer or playwright to be good at this with their screenshot method. I made a cli tool for this recently that worked quite well.
Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#26Earlier quoted context omitted.
Hi! Insaw this API when I was starting to work on snapDOM but I thought it was not ok for my needs so I discarded it. Regarding other API it would be great if View Transitions API could exposed the old view in a future
What were your needs that the API didn't meet?
Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#27Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#28How does this compare with https://www.npmjs.com/package/dom-to-image-more ?
Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#29Maybe add a function to convert to PDF? I've always dreamed of converting an element or the document body to a long-scrolling PDF. I tried to implement it with Playwright Python, but I had no luck. The resulting PDF height is messed up.
Re: Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed
#30I’ve been writing a browser extension recently, and part of the functionality I want is to export part of a view as an image, shareable for the socials. I wanted to use html2canvas, but the docs explicitly advise against using it in a browser extension. Would snapDOM be suitable for inclusion in an extension?