html-to-imagev1.11.13, 14 Feb 2025
Generates an image from a DOM node using HTML5 canvas and SVG.
$ npm install html-to-imagedom-to-imagev2.6.0, 4 Oct 2017
Generates an image from a DOM node using HTML5 canvas and SVG
$ npm install dom-to-image| Metric | html-to-image | dom-to-image | Difference |
|---|---|---|---|
| Weekly downloads | 4,782,295 | 227,866 | html-to-image 21.0x higher |
| 12-month download growth | +421% | +17% | html-to-image +404 pts |
| Gzip size | - | - | - |
| Minified size | - | - | - |
| Dependencies | 0 | 0 | Same |
| Unpacked size | 308 kB | - | - |
| Latest release | 1.11.13, 14 Feb 2025 | 2.6.0, 4 Oct 2017 | html-to-image 7.4 years more recent |
| Releases, last 12 months | 0 | - | - |
| First published | 4 Dec 2017 | - | - |
| GitHub stars | 7,241 | 10,780 | dom-to-image +49% |
| Open issues | 157 | 283 | dom-to-image 126 more |
| Open pull requests | 46 | 55 | dom-to-image 9 more |
| Contributors | - | - | - |
| Commits, last 52 weeks | 22 | 0 | html-to-image higher |
| TypeScript types | Bundled | None | Differs |
| Module format | ESM + CommonJS | CommonJS | Differs |
| Runtimes | - | - | - |
| License | MIT | MIT | Same |
Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.
html-to-image4.8m latest weekdom-to-image227.9k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
html-to-image
Major versions
- 0.0.14 Dec 2017
- 1.1.026 Oct 2020
Last 5 releases
- 1.11.1314 Feb 2025
- 1.11.1212 Feb 2025
- 1.11.111 Feb 2023
- 1.11.101 Feb 2023
- 1.11.931 Jan 2023
73 releases in total, 0 in the last 12 months
dom-to-image
Major versions
- -
Last 5 releases
- -
Release count not fetched
html-to-image
-
dom-to-image
-
html-to-image
-
dom-to-image
-
- Need no runtime dependenciesBoth
- Need both ESM and CommonJS entry pointshtml-to-image (html-to-image: ESM + CommonJS; dom-to-image: CommonJS)
- Need to load it with require()Both
- Need TypeScript types in the package itselfhtml-to-image (html-to-image: Bundled; dom-to-image: None)
- Need the more recent releasehtml-to-image (1.11.13 on 14 Feb 2025 vs 2.6.0 on 4 Oct 2017)
- Higher weekly npm downloadshtml-to-image (4.8m vs 227.9k)
Each line is generated from the data above.
- canvg vs html-to-imageNo search data
- html-to-image vs node-vibrantNo search data
- html-to-image vs zrenderNo search data
- html-to-image vs panzoomNo search data
- canvg vs dom-to-imageNo search data
- zrender vs dom-to-imageNo search data
- node-vibrant vs dom-to-imageNo search data
- dom-to-image vs panzoomNo search data
html-to-image: html-to-image npm registry, html-to-image npm downloads, html-to-image GitHub, html-to-image jsDelivr. Data fetched 25 Sept 2026.
dom-to-image: dom-to-image npm registry, dom-to-image npm downloads, dom-to-image GitHub, dom-to-image jsDelivr. Data fetched 25 Sept 2026.
Indexability: Indexed.