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

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
bubkoo avatar

bubkoo/html-to-image

0
View on GitHub↗
7,033 estrellas·661 forks·TypeScript·mit·5 vistas

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.

Historial de estrellas

Gráfico del historial de estrellas de bubkoo/html-to-imageGráfico del historial de estrellas de bubkoo/html-to-image

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Html To Image

Proyectos open-source similares, clasificados según cuántas características comparten con Html To Image.
  • tsayen/dom-to-imageAvatar de tsayen

    tsayen/dom-to-image

    10,777Ver en 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
    Ver en GitHub↗10,777
  • niklasvh/html2canvasAvatar de niklasvh

    niklasvh/html2canvas

    31,881Ver en 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
    Ver en GitHub↗31,881
  • zumerlab/snapdomAvatar de zumerlab

    zumerlab/snapdom

    7,902Ver en 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
    Ver en GitHub↗7,902
  • vercel/satoriAvatar de vercel

    vercel/satori

    13,028Ver en 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
    Ver en GitHub↗13,028
Ver las 30 alternativas a Html To Image→

Preguntas frecuentes

¿Qué hace bubkoo/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.

¿Cuáles son las características principales de bubkoo/html-to-image?

Las características principales de bubkoo/html-to-image son: 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.

¿Qué alternativas de código abierto existen para bubkoo/html-to-image?

Las alternativas de código abierto para bubkoo/html-to-image incluyen: 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…