html2canvas is a JavaScript HTML renderer. The script provides you with the tools to take screenshots of webpages directly on the browser. The screenshot is based on the DOM and therefore, it may not be 100% accurate to the real representation, given that it is not an actual screenshot, but a type of screenshot built based on the available data and information of the page. The script renders such page as a canvas image, by reading the DOM and the different styles of the featured elements. It doesn't require rendering from the server, given that the image is created on the user's browser. However, as it is heavily dependent on the browser, the library is not to be used in nodejs. It can't circumvent any browser content policy restrictions and to render cross-origin content a proxy will be needed to get the content to the same origin.

Features

  • The script allows you to take screenshots of webpages
  • Screenshots are based on the DOM
  • The library works with Chrome, Firefox, Opera, IE9, Edge and Safari
  • The script doesn’t render plugin content such as Flash or Java
  • To build a screenshot, it gathers information on all the elements on the webpage

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow html2canvas

html2canvas Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of html2canvas!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Screen Capture Software, TypeScript PostScript Software, TypeScript Image Recognition Software

Registered

2021-01-21