awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
bubkoo avatar

bubkoo/html-to-image

0
View on GitHub↗
7,033 stars·661 forks·TypeScript·mit·19 views

Html To Image

html-to-image is a JavaScript library and client-side screenshot utility that transforms DOM elements into image formats such as PNG, JPEG, or SVG. It functions as a DOM-to-canvas renderer, using the browser's native rendering capabilities to convert document nodes into rasterized images or canvas elements.

The library leverages SVG foreignObject serialization to capture live DOM content, which is then rasterized into pixel-based formats. It includes specialized exporters for generating binary Blobs or raw RGBA pixel data as typed arrays.

The tool provides configurations for image appearance, including background colors, dimensions, and quality. It also features a filtering system to exclude specific document nodes from the final output and manages external asset loading through font embedding optimizations and custom resource fetching configurations.

Features

  • HTML-to-Image Converters - Converts document elements into image formats like PNG, JPEG, or Blobs for display or download.
  • Raster Image Exports - Implements the process of generating fixed-resolution raster images from vector SVG sources.
  • DOM-to-Image Converters - Transforms specific document nodes into image formats such as PNG, JPEG, SVG, or raw pixel data.
  • Canvas Rasterizers - Draws serialized SVG images onto an HTML5 canvas to convert vector data into pixel-based raster images.
  • Client-Side Image Generation - Turns live web content into downloadable image files like PNG or JPEG for users to save.
  • SVG-Based Serialization - Converts HTML elements into an SVG foreignObject to embed live DOM content inside a vector graphic format.
  • DOM-to-Canvas Renderers - Converts document nodes into canvas elements to enable further programmatic drawing or image processing.
  • Screenshot Utilities - Provides a browser-based utility for capturing visual snapshots of specific webpage elements as downloadable image files.
  • Canvas Data Exports - Transforms canvas pixel data into binary Blobs for delivery as PNG or JPEG files.
  • Pixel Accessors - Reads raw RGBA values from a canvas context into a Uint8ClampedArray for direct per-pixel data access.
  • Screenshot Capture - Captures specific HTML elements as images to create visual snapshots or previews of a website.
  • Element - Excludes specific document nodes and their children from the final output using custom predicate functions.
  • DOM Node Filtering - Recursively traverses the DOM tree and excludes specific elements from the serialization process based on custom logic.
  • Client-Side Image Generators - Converts DOM nodes into canvas or pixel data for programmatic image processing entirely within the browser.
  • Fetching Behavior Configurations - Provides configurations to control how and when external asset requests are executed during the DOM-to-image conversion.
  • Asset Fetching Pipeline - Implements a pipeline for fetching external resources with support for cache busting and fallback placeholders.
  • Visual Snapshot Capture - Renders document elements as image files to create visual snapshots of specific page sections.

Star history

Star history chart for bubkoo/html-to-imageStar history chart for bubkoo/html-to-image

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Html To Image

These projects share indexed features with Html To Image. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • tsayen/dom-to-imagetsayen avatar

    tsayen/dom-to-image

    10,777View on GitHub↗

    dom-to-image is a programmatic tool for capturing the visual state of HTML elements as downloadable images or raw image data. It functions as a DOM to image converter that renders specific nodes as base64 data URLs, binary blobs, or pixel arrays. The library transforms HTML elements into raster or vector images by utilizing the HTML5 canvas API. It can retrieve raw byte arrays of a DOM node for low-level image manipulation as an RGBA pixel data extractor. The project covers web content rasterization and the generation of dynamic screenshots from live HTML content. It handles the conversion o

    JavaScriptcanvascssdom
    View on GitHub↗10,777
  • niklasvh/html2canvasniklasvh avatar

    niklasvh/html2canvas

    31,881View on GitHub↗

    This project is a browser-based rendering engine that captures visual snapshots of web page elements. It functions as a document object model to canvas renderer, programmatically reconstructing the visual appearance of web content by interpreting CSS box models and document structures directly within the client environment. The tool distinguishes itself by performing all image generation locally, eliminating the need for server-side processing or external rendering services. By simulating browser layout logic and mapping geometric shapes and text properties to pixel-based drawing commands, it

    TypeScriptdomjavascriptscreenshot
    View on GitHub↗31,881
  • zumerlab/snapdomzumerlab avatar

    zumerlab/snapdom

    7,902View on GitHub↗

    Snapdom is a DOM capture engine that serializes live web page elements into images, videos, documents, and other formats. It converts any DOM subtree into PNG, JPG, WebP, SVG, PDF, or self-contained HTML, and can record animating elements as video files or animated GIFs using the browser's MediaRecorder API. The library distinguishes itself through a plugin-based architecture that allows custom output format handlers and pipeline hooks to extend the capture process without re-cloning the source element. It manages separate caches for images, styles, and fonts with preloading and clearing meth

    JavaScriptcapture-screenclonedom
    View on GitHub↗7,902
  • vercel/satorivercel avatar

    vercel/satori

    13,028View on GitHub↗

    Satori is a library that converts HTML and CSS markup into rasterized images. It functions as a server-side rendering engine designed to transform web layouts into visual assets at runtime, ensuring consistent representation across different platforms and social media sharing services. The engine distinguishes itself by utilizing a cross-platform flexbox implementation to calculate element positions and dimensions, mirroring the behavior of modern web browsers without requiring a full browser engine. It processes document structures through a virtual tree traversal and employs a specialized p

    TypeScriptcssimageimage-generation
    View on GitHub↗13,028
Compare all 30 related projects→

Frequently asked questions

What does bubkoo/html-to-image do?

html-to-image is a JavaScript library and client-side screenshot utility that transforms DOM elements into image formats such as PNG, JPEG, or SVG. It functions as a DOM-to-canvas renderer, using the browser's native rendering capabilities to convert document nodes into rasterized images or canvas elements.

What are the main features of bubkoo/html-to-image?

The main features of bubkoo/html-to-image are: HTML-to-Image Converters, Raster Image Exports, DOM-to-Image Converters, Canvas Rasterizers, Client-Side Image Generation, SVG-Based Serialization, DOM-to-Canvas Renderers, Screenshot Utilities.

Which projects share features with bubkoo/html-to-image?

Projects with overlapping indexed features include: tsayen/dom-to-image — dom-to-image is a programmatic tool for capturing the visual state of HTML elements as downloadable images or raw… niklasvh/html2canvas — This project is a browser-based rendering engine that captures visual snapshots of web page elements. It functions as… zumerlab/snapdom — Snapdom is a DOM capture engine that serializes live web page elements into images, videos, documents, and other… vercel/satori — Satori is a library that converts HTML and CSS markup into rasterized images. It functions as a server-side rendering… ekoopmans/html2pdf.js — html2pdf.js is a client-side JavaScript library used to convert HTML elements and webpages into downloadable PDF… octref/polacode — Polacode is a VS Code extension that converts code snippets into styled, shareable images. It functions as a dedicated…