Tag

html2canvas

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 21, 2024 · Frontend Development

Implementing Electronic Signature, Image Merging, and Preview in Frontend using SignaturePad, html2canvas, and merge-images

This article explains how to build a front‑end electronic signature feature that merges a signature canvas with an HTML‑rendered document into a single preview image using SignaturePad, html2canvas, and merge-images, including code snippets and scaling adjustments.

canvaselectronic signaturefrontend
0 likes · 6 min read
Implementing Electronic Signature, Image Merging, and Preview in Frontend using SignaturePad, html2canvas, and merge-images
Sohu Tech Products
Sohu Tech Products
Sep 25, 2024 · Frontend Development

Poster Generation: Techniques, Libraries, and Common Issues

The article reviews poster generation methods—server‑side rendering with headless browsers or watermarking, client‑side CPU/GPU approaches, and frontend Canvas‑based techniques—detailing libraries such as Fabric.js, html2canvas, and dom‑to‑image, comparing speed, quality, compatibility, addressing cross‑origin and rendering bugs, and advising when to choose each solution.

Cross-DomainImage Renderingcanvas API
0 likes · 13 min read
Poster Generation: Techniques, Libraries, and Common Issues
大转转FE
大转转FE
Sep 20, 2024 · Frontend Development

Poster Generation: Frontend, Backend, and Mobile Implementation Overview

This article explains various techniques for generating custom posters—including canvas, Fabric.js, html2canvas, and dom‑to‑image—covers client‑side, server‑side, and mobile approaches, compares their performance and compatibility, and provides solutions to common issues such as cross‑origin restrictions, white‑screen bugs, and image‑ratio problems.

canvasfabric.jsfrontend development
0 likes · 18 min read
Poster Generation: Frontend, Backend, and Mobile Implementation Overview
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 12, 2024 · Frontend Development

Implementing Multi‑Page Print Preview and PDF Export in Vue 3 with vue3‑print‑nb, html2canvas, and jsPDF

This article explains how to achieve paginated print preview and PDF generation in a Vue 3 application by using vue3‑print‑nb for on‑demand printing, html2canvas to capture DOM elements as images, and jsPDF to compose multi‑page A4 PDFs with custom headers, footers, and spacing.

PDFVue3frontend
0 likes · 12 min read
Implementing Multi‑Page Print Preview and PDF Export in Vue 3 with vue3‑print‑nb, html2canvas, and jsPDF
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 6, 2024 · Frontend Development

How to Preview and Download HTML Returned from an API Using React and Vue

This article explains how to fetch an HTML string from an API and display it either via an iframe or by rendering the HTML directly in React or Vue, and provides multiple download options—including saving the raw HTML, capturing an image with html2canvas, and generating a PDF using jsPDF.

HTML previewReactVue
0 likes · 12 min read
How to Preview and Download HTML Returned from an API Using React and Vue
vivo Internet Technology
vivo Internet Technology
Jun 5, 2024 · Frontend Development

Technical Guide to Generating Poster Images in H5 and Mini Programs

This guide explains how to generate shareable poster images entirely on the front end for H5 pages and mini‑programs, compares client‑side, front‑end, and server‑side approaches, reviews libraries such as html2canvas, dom‑to‑image, wxml‑to‑canvas and Painter, and offers solutions for design fidelity, CORS, and performance issues.

Cross-Origincanvasdom-to-image
0 likes · 17 min read
Technical Guide to Generating Poster Images in H5 and Mini Programs
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 27, 2024 · Frontend Development

Generating Dynamic Posters with html2canvas in Web Pages

This tutorial explains how to use the html2canvas library to render dynamic HTML content into canvas images, covering installation, markup definition, styling, script implementation, download handling, and important limitations for creating shareable posters in front‑end applications.

JavaScriptcanvasfrontend
0 likes · 7 min read
Generating Dynamic Posters with html2canvas in Web Pages
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 25, 2023 · Frontend Development

Implementing Web Page Screenshot Functionality in the Browser: Techniques, Libraries, and Optimizations

This article explores how to capture and process screenshots of web pages directly in the browser, discussing canvas drawImage basics, pixel extraction, the trade‑offs of using html2canvas versus dom‑to‑image, performance and bundle size considerations, and alternative plugin‑based approaches.

JavaScriptcanvasdom-to-image
0 likes · 18 min read
Implementing Web Page Screenshot Functionality in the Browser: Techniques, Libraries, and Optimizations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 21, 2023 · Frontend Development

Implementing Web Page Screenshot in Frontend: Techniques, Libraries, and Optimization

This article explores the challenges and solutions for implementing a web‑page screenshot feature, comparing canvas drawImage, html2canvas, dom‑to‑image, and Chrome extension approaches, while discussing performance, bundle size, and practical code examples for extracting and processing pixel data.

JavaScriptcanvasdom-to-image
0 likes · 17 min read
Implementing Web Page Screenshot in Frontend: Techniques, Libraries, and Optimization
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 16, 2023 · Frontend Development

Debugging html2canvas: Understanding Canvas Rendering and Fixing Export Bugs

This article walks through debugging html2canvas by examining its rendering pipeline, comparing foreignObject and pure canvas methods, analyzing stacking contexts, and presenting practical fixes for export bugs, including configuration tweaks and DOM manipulation techniques.

SVGcanvasdebugging
0 likes · 15 min read
Debugging html2canvas: Understanding Canvas Rendering and Fixing Export Bugs
政采云技术
政采云技术
Oct 11, 2022 · Frontend Development

HTML to Image Conversion: A Comprehensive Guide for Frontend Developers

This article provides a comprehensive guide on converting HTML content to images, Word documents, and PDFs using various frontend techniques and libraries like html2canvas, html-docx-js, and jsPDF.

PDF generationVue.jscontent-export
0 likes · 12 min read
HTML to Image Conversion: A Comprehensive Guide for Frontend Developers
Tencent Cloud Developer
Tencent Cloud Developer
Mar 2, 2022 · Frontend Development

Front-end Page Screenshot: dom-to-image and html2canvas – Usage and Implementation Principles

This article compares the front‑end screenshot libraries dom‑to‑image and html2canvas, explains their APIs and underlying SVG‑or‑canvas rendering pipelines, walks through typical usage code, highlights common pitfalls such as cross‑origin images and scrolling, and offers practical configuration and debugging tips for developers.

Front-endJavaScriptSVG
0 likes · 21 min read
Front-end Page Screenshot: dom-to-image and html2canvas – Usage and Implementation Principles
Beike Product & Technology
Beike Product & Technology
Dec 17, 2021 · Frontend Development

Using html2canvas to Capture Baidu Maps with Overlays – Complete Implementation Guide

This article provides a step‑by‑step tutorial on how to use html2canvas to screenshot Baidu Maps (both v3.0 and GL v1.0), handle cross‑origin image issues, adjust SVG overlay positions, and download the resulting images using canvas or base64 data URIs.

Baidu MapsCORSJavaScript
0 likes · 15 min read
Using html2canvas to Capture Baidu Maps with Overlays – Complete Implementation Guide
Tencent Cloud Developer
Tencent Cloud Developer
Sep 27, 2021 · Frontend Development

html2canvas Implementation Principles and Opacity Rendering Issue Analysis

The article explains html2canvas’s workflow—cloning, parsing, and rendering based on stacking contexts—and diagnoses why transparent overlays appear opaque in screenshots, revealing that the npm package lacks opacity handling; it then proposes adding an OpacityEffect class that records and applies element opacity via canvas globalAlpha to fix the issue.

CSSScreenshotcanvas
0 likes · 11 min read
html2canvas Implementation Principles and Opacity Rendering Issue Analysis
Xianyu Technology
Xianyu Technology
Jul 21, 2020 · Frontend Development

Mobile Web Screenshot Solution Using Canvas

This article presents a custom canvas‑based mobile screenshot solution for single‑page applications that overcomes cross‑origin image blocking, low scaling clarity, inaccurate arc rendering, and deep DOM parsing issues by loading images anonymously, rendering at higher resolution, using precise arc patterns, and measuring text for proper wrapping.

SVGcanvas screenshotfrontend development
0 likes · 7 min read
Mobile Web Screenshot Solution Using Canvas
360 Tech Engineering
360 Tech Engineering
Dec 12, 2019 · Backend Development

Server‑Side Browser Screenshot with Selenium and html2canvas on Linux

This guide explains how to set up a headless Chrome environment on Linux, install Selenium and html2canvas, inject JavaScript to capture arbitrary DOM elements as images, retrieve the base64 data, and optionally package the whole workflow into a Docker container for reproducible deployment.

ChromeDriverDockerPython
0 likes · 7 min read
Server‑Side Browser Screenshot with Selenium and html2canvas on Linux
Tencent Music Tech Team
Tencent Music Tech Team
Feb 2, 2018 · Backend Development

Generating Long Event Images for QQ Music Albums: Front‑end and Server‑side Solutions, Pitfalls and Optimizations

To quickly create shareable long‑event images for QQ Music albums, the team evaluated client‑side DOM‑to‑image tools (html2canvas and SVG) that suffered from blur, incompleteness, slow rendering and oversized base64 data, then migrated rendering to the server using PhantomJS, node‑canvas and ultimately ImageMagick, whose combined script execution, mpc caching, and Q8 build provided the most balanced quality‑performance solution despite remaining operational quirks.

ImageMagickPhantomJSSVG
0 likes · 15 min read
Generating Long Event Images for QQ Music Albums: Front‑end and Server‑side Solutions, Pitfalls and Optimizations