Loading...
Loading...
Generate Etsy listing images from HTML templates using Playwright. Supports single and batch rendering with customizable title, subtitle, badge text, and product images. Use when creating Etsy product listing images, mockups, or running batch generation for multiple products (e.g., puppet printables, digital downloads). Works with any HTML template that uses PRODUCT_IMAGE_URL, TITLE_TEXT, SUBTITLE_TEXT, BADGE_LEFT_TEXT placeholders.
npx skill4agent add mmcmedia/openclaw-agents etsy-listing-generatornode scripts/render.mjs <template> <image-url> <title> <subtitle> <badge> <output>node scripts/render.mjs \
assets/puppet-listing.html \
"http://localhost:3021/api/output/moses-characters.png" \
"Bible Story Puppet Printables" \
"Moses & The Exodus" \
"12 ELEMENTS + 4 BACKGROUNDS" \
output/moses-listing.png[
{ "file": "http://localhost:3021/api/output/moses-characters.png", "subtitle": "Moses & The Exodus" },
{ "file": "http://localhost:3021/api/output/david-characters.png", "subtitle": "David & Goliath" }
]node scripts/render.mjs --batch assets/puppet-listing.html stories.json output/listings/| Field | Required | Default | Description |
|---|---|---|---|
| Yes | — | Product image URL (HTTP or file://) |
| No | "Bible Story Puppet Printables" | Large top text on banner |
| No | — | Smaller bottom text on banner |
| No | "12 ELEMENTS + 4 BACKGROUNDS" | Left badge text |
| No | Auto from subtitle | Output filename |
PRODUCT_IMAGE_URLTITLE_TEXTSUBTITLE_TEXTBADGE_LEFT_TEXTINSTANT DOWNLOADobject-fit: cover; object-position: center centerassets/puppet-listing.html.canvas.banner.product-area.badge.title.subtitlePRODUCT_IMAGE_URL/projects/image-forge/output/http://localhost:3021/api/output/filename.pngfile://npx playwright install chromium