# HTML To Image

> Takes a URL, HTML file path, or raw HTML code and generates a printable image.

- Skill: `dvcrn/html-to-image` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add dvcrn/html-to-image`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvcrn/html-to-image/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: dvcrn (https://skillmd.com/u/dvcrn)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/dvcrn/html-to-image

---


# HTML to Image Skill (via agent-browser)

This skill utilizes OpenClaw's `agent-browser` composition to render a URL, local HTML file, or raw HTML string into an image. It executes a lightweight Bash script wrapper.

## Usage Guide
When using this skill to generate an image, provide the `source_type` and `source_content`.

- **source_type**: The content format (`url`, `file`, or `code`).
- **source_content**: The target URL, absolute file path, or HTML code block.
- **format**: The desired image format (`png`, `jpeg`, or `webp`). Default is `png`.
- **width**: The width of the browser viewport. Default is 1200px.
- **full_page**: Set to `true` to take a full page screenshot instead of just the viewport.

