Generate Image

v1.0.0

Generate a PNG image from HTML content or a public URL using headless Chromium. Supports custom dimensions, retina quality, full-page screenshots, cookie con...

0· 79·0 current·0 all-time
byRishabh Dugar@rishabhdugar

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for rishabhdugar/generate-image-from-html.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Generate Image" (rishabhdugar/generate-image-from-html) from ClawHub.
Skill page: https://clawhub.ai/rishabhdugar/generate-image-from-html
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install generate-image-from-html

ClawHub CLI

Package manager switcher

npx clawhub@latest install generate-image-from-html
Security Scan
Capability signals
Requires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description match an HTTP-based HTML->PNG screenshot service. The skill declares the API endpoint and an API-key header (CLIENT-API-KEY) which is appropriate for this purpose. No unrelated binaries, config paths, or credentials are requested.
Instruction Scope
SKILL.md instructs the agent to POST HTML or a URL to https://pdfapihub.com/api/v1/generateImage with the CLIENT-API-KEY header — this is consistent with the stated purpose. Note: user-supplied HTML, URLs, and dynamic parameters will be transmitted to a third party; the instructions do not attempt to read local files or other system state.
Install Mechanism
There is no install spec and no code files to execute locally (instruction-only). This minimizes local install risk.
Credentials
The skill does not request host environment variables, filesystem paths, or unrelated secrets. Authentication is handled via an API key header for the external service, which is proportional to the task.
Persistence & Privilege
always is false and the skill does not request persistent/privileged system modifications. It is an agent-invocable skill that makes outbound API requests — normal for this category.
Assessment
This skill is a coherent wrapper around a third-party API (pdfapihub.com) and appears to do what it says: POST your HTML or a public URL to that service to receive an image. Before installing or using it, consider: (1) Any HTML, URLs, or dynamic data you send will be transmitted to and processed by pdfapihub.com — do not include passwords, private tokens, or other sensitive data. (2) Obtain and treat the CLIENT-API-KEY like any API secret; check where the agent will store it and revoke it if compromised. (3) Confirm the service’s privacy/retention policy (SKILL.md says files are deleted after 30 days) and any cost or rate-limit implications. (4) If you require full control over sensitive rendering, consider a self-hosted rendering solution (headless Chromium) instead of a third-party API. Otherwise, this skill’s scope and requirements are proportionate and expected.

Like a lobster shell, security has layers — review code before you run it.

latestvk9700qp88w2f9n82522g2p7nch8508xg
79downloads
0stars
1versions
Updated 1w ago
v1.0.0
MIT-0

Generate Image

What It Does

Renders a webpage or HTML content to a PNG image using headless Chromium. Supports URL screenshots and HTML-to-image rendering with full customization.

When to Use

  • Take a screenshot of a live webpage
  • Render HTML/CSS to a PNG image (social cards, banners, certificates)
  • Generate full-page scrollable screenshots
  • Create retina-quality images with custom dimensions

Required Inputs

You must provide one of:

  • html_content — raw HTML string to render
  • url — a public URL to screenshot

Authentication

Send your API key in the CLIENT-API-KEY header.

Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.

Use Cases

  • Social Media Cards — Generate OG images, Twitter cards, or Instagram story images from HTML templates
  • Email Banners — Create personalized email header images with dynamic content
  • Website Screenshots — Capture full-page or viewport screenshots of live websites for monitoring or previews
  • Certificate Images — Render certificates as PNG images for sharing on social media
  • Product Mockups — Generate product images with dynamic text overlays
  • Thumbnail Generation — Create consistent thumbnail images for blog posts or video previews
  • QR Code Cards — Render HTML with embedded QR codes as shareable images

Key Options

ParameterDescription
output_formaturl (default), base64, both, image/png/binary/file
width / heightOutput image dimensions in pixels
deviceScaleFactor1 (default), 2 for retina quality
full_pagetrue for full scrollable screenshot (URL mode)
wait_untilload, domcontentloaded, networkidle, commit
cookie_accept_textAuto-click cookie consent before screenshot
fontGoogle Font names, pipe-separated
dynamic_paramsKey-value object for {{placeholder}} replacement

Rate Limits

TierRequests/min
Free/Basic/Pro10
Enterprise30
Business100

Example Usage

curl -X POST https://pdfapihub.com/api/v1/generateImage \
  -H "CLIENT-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "html_content": "<div style=\"padding:40px;background:#4F46E5;color:white;\"><h1>Hello {{name}}</h1></div>",
    "dynamic_params": { "name": "World" },
    "width": 800,
    "height": 400,
    "output_format": "url"
  }'

Notes

  • Files are automatically deleted after 30 days
  • Maximum output file size depends on your plan tier

Comments

Loading comments...