Generate beautiful card images from text content with one click, in a macaron-color cartoon illustration style.
Generate card, make a card, draw a card, generate image, book card, recommendation card, concept card, quote card, comparison card, create an image.
scripts/generate_card.py → Generate HTML filepowershell
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.
Type--typeDescriptionBook Recommendation CardbookTitle, author, rating, recommendation reason, quote tagsConcept CardconceptConcept name, definition, examples, related conceptsQuote CardquoteQuoted text, author, source, backgroundComparison CardcompareComparison topic, characteristics of both sides, conclusion
All cards follow the macaron-color cartoon illustration style:
See references/design_guide.md for detailed color palettes, ratio parameters, and JSON field descriptions.
The generated HTML needs to be rendered as a PNG. Recommended methods:
Once the screenshot is taken, the final PNG card image is ready and can be sent directly to the user.