← 返回
未分类 中文

Macaron Card Generator

Generate beautiful macaron-color cartoon illustration-style card images from text content. Supports various types such as book recommendation cards, concept...
根据文本内容生成色彩柔和的马卡龙卡通插画风格卡片图像,支持多种类型,如书籍推荐卡、概念卡等。
openlark openlark 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 284
下载
💾 0
安装
1
版本
#latest

概述

Macaron Card Generator

Generate beautiful card images from text content with one click, in a macaron-color cartoon illustration style.

Trigger Words

Generate card, make a card, draw a card, generate image, book card, recommendation card, concept card, quote card, comparison card, create an image.

Workflow

  1. Understand user requirements → Confirm card type, content, and aspect ratio
  2. Construct JSON content → Organize data by card type (see references/design_guide.md for field descriptions)
  3. Run scripts/generate_card.py → Generate HTML file
  4. Screenshot with Playwright/CDP → Render HTML as PNG
  5. Send PNG to user

Quick Start

python scripts/generate_card.py \
  --type book \
  --content '{"title":"The Little Prince","author":"Antoine de Saint-Exupéry","recommendation_reason":"...","key_takeaway":"...","rating":"5","tags":["Classic"],"ratio":"3:4"}' \
  --output card.html

Then render card.html as a PNG using a browser screenshot tool.

Card Types

Type--typeDescription
---------------------------
Book Recommendation CardbookTitle, author, rating, recommendation reason, quote tags
Concept CardconceptConcept name, definition, examples, related concepts
Quote CardquoteQuoted text, author, source, background
Comparison CardcompareComparison topic, characteristics of both sides, conclusion

Design System

All cards follow the macaron-color cartoon illustration style:

  • Soft pastel gradient backgrounds + white rounded card
  • Dashed double borders simulating a hand-drawn feel
  • Decorative circle, star, and polka dot elements
  • Each card type is automatically matched with a color scheme

See references/design_guide.md for detailed color palettes, ratio parameters, and JSON field descriptions.

Screenshot Output

The generated HTML needs to be rendered as a PNG. Recommended methods:

  1. Playwright (preferred): Use the playwright MCP tool, set the viewport to the width and height output by the script, then take a screenshot
  2. xbrowser skill: Open the HTML and take a full-page screenshot
  3. browser tool: If the HTML is accessible via HTTP, use the browser to take a screenshot

Once the screenshot is taken, the final PNG card image is ready and can be sent directly to the user.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-09 04:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 427 📥 116,417
content-creation

Toutiao Graphic Publisher

openlark
通过浏览器自动化在头条发布图文内容,支持智能排版、自动生成热门标签等功能。
★ 2 📥 990
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 216 📥 46,838