html-to-imagev1.11.13, 14 Feb 2025
Generates an image from a DOM node using HTML5 canvas and SVG.
$ npm install html-to-image| Metric | canvg | html-to-image | Difference |
|---|---|---|---|
| Weekly downloads | 9,748,797 | 4,782,295 | canvg 2.0x higher |
| 12-month download growth | +261% | +421% | html-to-image +160 pts |
| Gzip size | - | - | - |
| Minified size | - | - | - |
| Dependencies | 5 | 0 | canvg 5 more |
| Unpacked size | 1.2 MB | 308 kB | html-to-image 4.1x smaller |
| Latest release | 4.0.3, 12 Mar 2025 | 1.11.13, 14 Feb 2025 | canvg 27 days more recent |
| Releases, last 12 months | 0 | 0 | Same |
| First published | 14 Dec 2012 | 4 Dec 2017 | canvg 5.0 years earlier |
| GitHub stars | 3,836 | 7,241 | html-to-image 1.9x higher |
| Open issues | 117 | 157 | html-to-image 40 more |
| Open pull requests | 22 | 46 | html-to-image 24 more |
| Contributors | - | - | - |
| Commits, last 52 weeks | 8 | 22 | html-to-image 2.8x higher |
| TypeScript types | Bundled | Bundled | Same |
| Module format | ESM + CommonJS | ESM + CommonJS | Same |
| 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 weekhtml-to-image4.8m 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
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
canvg
-
html-to-image
-
canvg
-
html-to-image
-
- Need no runtime dependencieshtml-to-image (canvg has 5, html-to-image has 0)
- Module formatBoth ESM + CommonJS
- Need TypeScript types in the package itselfBoth
- Node.js version requirementcanvg: >=12.0.0; html-to-image: none declared (engines field in package.json)
- Need the more recent releasecanvg (4.0.3 on 12 Mar 2025 vs 1.11.13 on 14 Feb 2025)
- Higher weekly npm downloadscanvg (9.7m vs 4.8m)
Each line is generated from the data above.
- canvg vs dom-to-imageNo search data
- canvg vs zrenderNo search data
- html-to-image vs dom-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: canvg npm registry, canvg npm downloads, canvg GitHub, canvg jsDelivr. Data fetched 25 Sept 2026.
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.
Indexability: Indexed.