dom-to-image alternatives
8 packages that do the same job as dom-to-image: html-to-image, @maxgraph/core, canvg, wmf, vega-canvas, zrender, tui-image-editor, node-vibrant. Figures below are from npm, GitHub and Bundlephobia.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| dom-to-image This package | 227.9k | +17% | - | 0 | 8 years ago | CommonJS | None | - |
| html-to-image | 4.8m | +421% | - | 0 | 1 year ago | ESM + CommonJS | Bundled | - |
| @maxgraph/core | 32.8k | - | - | 0 | 2 months ago | ESM + CommonJS | Bundled | - |
| canvg | 9.7m | +261% | - | 5 | 1 year ago | ESM + CommonJS | Bundled | - |
| wmf | 9.4m | +210% | - | 0 | 6 years ago | CommonJS | Bundled | - |
| vega-canvas | 670.9k | +230% | - | 0 | 1 year ago | ESM only | None | - |
| zrender | 3.7m | +237% | - | 1 | 4 months ago | ESM + CommonJS | Bundled | - |
| tui-image-editor | 27k | +34% | - | 3 | 4 years ago | CommonJS | None | - |
| node-vibrant | 552.1k | +528% | - | 6 | 7 months ago | ESM + CommonJS | Bundled | - |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.
Generates an image from a DOM node using HTML5 canvas and SVG.
Compared with dom-to-image
- 21x more weekly downloads (4.8m vs 227.9k)
- ESM + CommonJS vs CommonJS
- Bundled types vs no types
- Last release 14 Feb 2025 vs 4 Oct 2017
- 1.5x fewer GitHub stars (7.2k vs 10.8k)
maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.
Compared with dom-to-image
- 6.9x fewer weekly downloads (32.8k vs 227.9k)
- ESM + CommonJS vs CommonJS
- Bundled types vs no types
- Last release 8 Jul 2026 vs 4 Oct 2017
- 9.5x fewer GitHub stars (1.1k vs 10.8k)
JavaScript SVG parser and renderer on Canvas.
Compared with dom-to-image
- 43x more weekly downloads (9.7m vs 227.9k)
- 5 dependencies vs 0
- ESM + CommonJS vs CommonJS
- Bundled types vs no types
- Declares Node.js >=12.0.0 vs none declared
- Last release 12 Mar 2025 vs 4 Oct 2017
- 2.8x fewer GitHub stars (3.8k vs 10.8k)
Windows MetaFile (WMF) parser
Compared with dom-to-image
- 41x more weekly downloads (9.4m vs 227.9k)
- Bundled types vs no types
- Declares Node.js >=0.8 vs none declared
- Last release 16 Mar 2020 vs 4 Oct 2017
- 634x fewer GitHub stars (17 vs 10.8k)
Canvas and Image utilities.
Compared with dom-to-image
- 2.9x more weekly downloads (670.9k vs 227.9k)
- ESM only vs CommonJS
- Last release 27 Mar 2025 vs 4 Oct 2017
- 1.1x more GitHub stars (12k vs 10.8k)
A lightweight graphic library providing 2d draw for Apache ECharts
Compared with dom-to-image
- 16x more weekly downloads (3.7m vs 227.9k)
- 1 dependency vs 0
- ESM + CommonJS vs CommonJS
- Bundled types vs no types
- Last release 4 May 2026 vs 4 Oct 2017
- 1.7x fewer GitHub stars (6.3k vs 10.8k)
TOAST UI ImageEditor
Compared with dom-to-image
- 8.4x fewer weekly downloads (27k vs 227.9k)
- 3 dependencies vs 0
- Last release 25 Apr 2022 vs 4 Oct 2017
- 1.4x fewer GitHub stars (7.7k vs 10.8k)
Extract prominent colors from an image. Supports both node and browser environment.
Compared with dom-to-image
- 2.4x more weekly downloads (552.1k vs 227.9k)
- 6 dependencies vs 0
- ESM + CommonJS vs CommonJS
- Bundled types vs no types
- Last release 27 Jan 2026 vs 4 Oct 2017
- 4.4x fewer GitHub stars (2.5k vs 10.8k)
Indexability: Indexed.