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
The AI workplace management platform Icon
The AI workplace management platform

Plan smart spaces, connect teams, manage assets, and get insights with the leading AI-powered operating system for the built world.

By combining AI workflows, predictive intelligence, and automated insights, OfficeSpace gives leaders a complete view of how their spaces are used and how people work. Facilities, IT, HR, and Real Estate teams use OfficeSpace to optimize space utilization, enhance employee experience, and reduce portfolio costs with precision.
Learn More
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