Skip to content

sbitrastellar/html2canvas-batch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html2canvas-batch

Next generation JavaScript screenshots tool.

build status npm version npm downloads

Getting Started | DeepWiki


Why html2canvas-batch?

html2canvas-batch is a fork of niklasvh/html2canvas that includes various fixes and new features. It offers several advantages over the original html2canvas, such as:

  • support color function color() (including relative colors)
  • support color function lab()
  • support color function lch()
  • support color function oklab()
  • support color function oklch()
  • Support object-fit of <img/>
  • Fixed some issues

If you found this helpful, don't forget to leave a star 🌟.

Installation

npm install html2canvas-batch
pnpm / yarn add html2canvas-batch

Usage

import html2canvas from 'html2canvas-batch';

To render an element with html2canvas-batch with some (optional) options, simply call html2canvas(element, options);

html2canvas(document.body).then(function(canvas) {
    document.body.appendChild(canvas);
});

Contribution

If you want to add some features, feel free to submit PR.

If you want to become a maintainer on it, please contact me.

Credits

This project is a fork of html2canvas-pro by yorickshan, which is itself a fork of the original html2canvas by niklasvh.

We would like to thank:

License

MIT.

About

Screenshots with JavaScript. Next generation!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 65.3%
  • HTML 29.1%
  • JavaScript 5.5%
  • Shell 0.1%