dom-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 | canvg | dom-to-image | Difference |
|---|---|---|---|
| Weekly downloads | 9,748,797 | 227,866 | canvg 42.8x higher |
| 12-month download growth | +261% | +17% | canvg +244 pts |
| Gzip size | - | - | - |
| Minified size | - | - | - |
| Dependencies | 5 | 0 | canvg 5 more |
| Unpacked size | 1.2 MB | - | - |
| Latest release | 4.0.3, 12 Mar 2025 | 2.6.0, 4 Oct 2017 | canvg 7.4 years more recent |
| Releases, last 12 months | 0 | - | - |
| First published | 14 Dec 2012 | - | - |
| GitHub stars | 3,836 | 10,780 | dom-to-image 2.8x higher |
| Open issues | 117 | 283 | dom-to-image 166 more |
| Open pull requests | 22 | 55 | dom-to-image 33 more |
| Contributors | - | - | - |
| Commits, last 52 weeks | 8 | 0 | canvg 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.
canvg9.7m latest weekdom-to-image227.9k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
canvg
Major versions
- 0.0.114 Dec 2012
- 1.0.09 Mar 2018
- 2.0.018 May 2019
- 3.0.04 Dec 2019
- 4.0.017 Feb 2022
Last 5 releases
- 3.0.1113 Mar 2025
- 4.0.312 Mar 2025
- 4.0.222 Apr 2024
- 4.0.119 Jul 2022
- 4.0.017 Feb 2022
28 releases in total, 0 in the last 12 months
dom-to-image
Major versions
- -
Last 5 releases
- -
Release count not fetched
canvg
-
dom-to-image
-
canvg
-
dom-to-image
-
- Need no runtime dependenciesdom-to-image (canvg has 5, dom-to-image has 0)
- Need both ESM and CommonJS entry pointscanvg (canvg: ESM + CommonJS; dom-to-image: CommonJS)
- Need to load it with require()Both
- Need TypeScript types in the package itselfcanvg (canvg: Bundled; dom-to-image: None)
- Node.js version requirementcanvg: >=12.0.0; dom-to-image: none declared (engines field in package.json)
- Need the more recent releasecanvg (4.0.3 on 12 Mar 2025 vs 2.6.0 on 4 Oct 2017)
- Higher weekly npm downloadscanvg (9.7m vs 227.9k)
Each line is generated from the data above.
- canvg vs html-to-imageNo search data
- canvg vs zrenderNo search data
- html-to-image 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
canvg: canvg npm registry, canvg npm downloads, canvg GitHub, canvg 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.