webpage-to-image

Webpage to Image (local Chrome rendering) — Render a local HTML file or webpage URL in local Chrome into a full high‑resolution long image (PNG/JPG). Use when users request “webpage to image,” “full page screenshot,” or similar. Supports custom page width and pixel multipliers, waits for fonts and triggers lazy loading; returns image path, pixel dimensions, and file size when done.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "webpage-to-image" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-67da624eb8fb6044f151c7da4cf16e0b129609b06de688fd95de07c95fdde6c3. Verify the upstream source and version against https://skillhub.cn/skills/user_a2b5b53b/webpage-to-image before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Webpage to Image (local Chrome rendering) — Render a local HTML file or webpage URL in local Chrome into a full high‑resolution long image (PNG/JPG). Use when users request “webpage to image,” “full page screenshot,” or similar. Supports custom page width and pixel multipliers, waits for fonts and triggers lazy loading; returns image path, pixel dimensions, and file size when done.

0 Downloads

Introduction source: third_party · user_a2b5b53b · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: webpage-to-image
description: 使用本机 Chrome 将本地 HTML 文件或网页网址渲染成完整的高清长图(PNG/JPG)。当用户提出“网页转图片”“网页截长图”“整页截图”“导出高清页面”“full page screenshot”等请求时使用。支持自定义页面宽度、2x/3x 像素倍数,自动等待字体加载并滚动触发懒加载内容,完成后返回图片路径、像素尺寸和文件体积。

网页转高清长图

使用本机已安装的 Chrome、Edge 或 Chromium,把一个 HTML 文件或网页网址渲染成完整的高清长图。适合将学习笔记、报告页、海报页和其他网页内容导出为适合公众号、小红书或朋友圈分享的 PNG/JPG 图片。

使用前提

  • Node.js 18+
  • 本机已安装 Chrome、Edge 或 Chromium
  • 首次使用需要安装 puppeteer-core,不会额外下载浏览器

标准流程

  1. 将包含本文件的目录记为 Skill 目录,并切换到该目录。

  2. 如果 node_modules/puppeteer-core 不存在,安装依赖:

    npm install --no-audit --no-fund
  3. 执行渲染:

    node render.js \
      --input "<HTML 文件路径或 http(s) 网址>" \
      --out "<输出图片路径>" \
      --width 1000 \
      --scale 2
  4. 读取脚本输出的 JSON,并向用户返回:

    • 图片文件路径 out
    • 图片像素尺寸 pxWidth × pxHeight
    • 文件体积 fileMB

参数

参数 说明 默认值
--input 本地 HTML 文件路径或 http(s):// 网址 必填
--out 输出的 .png、.jpg 或 .jpeg 路径 必填
--width 页面 CSS 宽度,建议 700–1440 1000
--scale 像素倍数,建议 2 或 3 2
--format png 或 jpeg 根据输出后缀判断
--quality JPEG 画质,范围 1–100 92
--chrome 手动指定浏览器可执行文件路径 自动查找

推荐预设

  • 公众号或通用长图:--width 1000 --scale 2
  • 手机竖版阅读:--width 700 --scale 3
  • 桌面网页存档:--width 1440 --scale 2
  • 文件过大:改用 --format jpeg --quality 90,或降低 --scale

安全边界

  • 只渲染用户明确提供或授权访问的本地文件和网址。
  • 不要自行读取浏览器 Cookie、登录状态或私人页面。
  • 网页会在本机浏览器中执行其脚本;处理不可信网址时保留 Chrome 沙箱,不要添加 --no-sandbox。
  • 不要在未获得用户允许时上传生成的图片或网页内容。

排错

  • NO_CHROME:没有找到浏览器。使用 --chrome "<浏览器路径>",或设置 CHROME_PATH。
  • MISSING_PUPPETEER:依赖尚未安装。在 Skill 目录运行 npm install --no-audit --no-fund。
  • INVALID_INPUT:本地文件不存在,或网址不是有效的 http(s) 地址。
  • 页面内容不完整:确认外部资源可访问;对于依赖本地开发服务器的页面,应使用服务器网址作为 --input。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供网页转高清长图功能,解决用户将网页内容导出为图片的实际需求
  • 适用于公众号、小红书等分享场景,具有明确的实用价值和广泛受众
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包括中英文常见表达,边界清晰
Structure and Standards90/100

Highlights

  • 文档结构清晰,包含完整的使用前提、流程、参数说明和排错指南
  • frontmatter 完整,提供了端到端的执行示例
Execution Reliability85/100

Highlights

  • 依赖明确,参数说明详细,覆盖了主要异常情况并提供排错建议
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 22, 69

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.