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

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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