That's slightly harder, but still possible by first rendering the HTML onto a canvas. Example here: http://html2canvas.hertzen.com/. - Source: Hacker News / 10 months ago
If you have it working in the browser you could use this.https://html2canvas.hertzen.com/. Source: about 1 year ago
Use http://html2canvas.hertzen.com/ to convert the div to an image if you want. Source: over 1 year ago
This looks super useful! I’ve previously used [html2canvas](https://html2canvas.hertzen.com/) to make a simple tool for generating graphics for a news org, but I can see myself using this going forward. - Source: Hacker News / over 1 year ago
You can use html2canvas, but it is not for taking screenshots. It is more about generating an image from HTML. And the library not always perfectly renders since it is done manually in code. Source: over 1 year ago
The styles are set with VanillaJS and html2canvas is used to render the code as image. - Source: dev.to / about 2 years ago
My research so far suggests a tool like html2canvas would be our best bet. Only issue is that this tool and those like it seem unable to access cross origin data, which our embedded stream would be. Source: about 2 years ago
Under the hood, we use html2canvas to get the screenshot. I go over more on why in the Alternative Solutions section. - Source: dev.to / over 2 years ago
Check out http://html2canvas.hertzen.com/ it's agnostic and might work for your use case. Source: over 2 years ago
Https://html2canvas.hertzen.com/ - converting html to a canvas and taking a screenshot? Source: over 2 years ago
A few months back, I was working on a web-based project where a feature was required that is to take a screenshot of an HTML div in the browser and show it to the user. I was like, sorry this is not possible. Then I did some research and got to know about this library called html2canvas. - Source: dev.to / almost 3 years ago
I'm trying to use the html2canvas to generate an image on the fly from markup on the page. I'd then like the user to have the ability to share their generated image out to social. I think this is a two-fold question. Source: almost 3 years ago
You can also grab a screenshot by using html2canvas. Source: about 3 years ago
Do you know an article comparing html2canvas to other products?
Suggest a link to a post with product alternatives.
This is an informative page about html2canvas. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.