etsy-listing-generator
8
总安装量
8
周安装量
#34641
全站排名
安装命令
npx skills add https://github.com/mmcmedia/openclaw-agents --skill etsy-listing-generator
Agent 安装分布
opencode
8
gemini-cli
8
codex
8
openclaw
8
github-copilot
7
amp
7
Skill 文档
Etsy Listing Image Generator
Generate professional Etsy listing images from HTML templates via Playwright screenshot rendering.
Quick Start â Single Image
node scripts/render.mjs <template> <image-url> <title> <subtitle> <badge> <output>
Example:
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
Quick Start â Batch
Create a JSON file with an array of objects:
[
{ "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" }
]
Run:
node scripts/render.mjs --batch assets/puppet-listing.html stories.json output/listings/
Batch JSON Fields
| Field | Required | Default | Description |
|---|---|---|---|
file / image / url |
Yes | â | Product image URL (HTTP or file://) |
title |
No | “Bible Story Puppet Printables” | Large top text on banner |
subtitle / name |
No | â | Smaller bottom text on banner |
badge |
No | “12 ELEMENTS + 4 BACKGROUNDS” | Left badge text |
output |
No | Auto from subtitle | Output filename |
Template Placeholders
Templates are plain HTML files. The renderer replaces these strings:
PRODUCT_IMAGE_URLâ product/character imageTITLE_TEXTâ large banner textSUBTITLE_TEXTâ smaller banner textBADGE_LEFT_TEXTâ left pill badgeINSTANT DOWNLOADâ right badge (hardcoded, edit HTML to change)
Template Design â Current Base (puppet-listing.html)
- 1400Ã2000px portrait format
- White background, sage green (#4D6840) bottom banner
- Gold pill badges (top-left: custom, top-right: INSTANT DOWNLOAD)
- Poppins font throughout
- Product image uses
object-fit: cover; object-position: center center - Subtle TheSunDaisy watermark
Creating New Templates
Copy assets/puppet-listing.html and modify. Key CSS to adjust:
.canvaswidth/height â canvas dimensions.bannerheight â green section size.product-areatop/bottom â image boundaries.badgestyling â pill badge appearance.title/.subtitleâ typography
Keep the placeholder strings (PRODUCT_IMAGE_URL, etc.) for the renderer to replace.
Serving Local Images
If product images are local files, either:
- Serve via Image Forge backend: copy to
/projects/image-forge/output/â accessible athttp://localhost:3021/api/output/filename.png - Use
file://URLs (must be absolute paths) - Start any local HTTP server in the image directory
Dependencies
- Node.js
- Playwright (
npx playwright install chromiumif not installed)