OpenParable
Skip to content
← Back to skills

Meme Gen

Documents
meme-gen

Meme Gen is an Agent Skill for documents published in the fuyuxiang/echo-agent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Generate meme images with text overlays using Pillow. Pick templates or create custom image macros.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fuyuxiang/echo-agent/blob/HEAD/skills/creative/meme-gen/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/meme-gen, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Meme Generator

Create meme images with text overlays.

Install

pip install Pillow httpx

Script

python3 scripts/make_meme.py --template drake --top "写文档" --bottom "写 meme"
python3 scripts/make_meme.py --image url_or_path --top "TOP TEXT" --bottom "BOTTOM TEXT"
python3 scripts/make_meme.py --template distracted --top "新框架" --bottom "当前项目"

Popular Templates

TemplateIDUse
DrakedrakeYes/No preference
Distracted BoyfrienddistractedAttraction comparison
Change My MindchangemymindStrong opinion
This is FinethisisfineChaos acceptance
Two ButtonstwobuttonsHard choice

How It Works

  1. Download template image (from imgflip or local cache)
  2. Add text with white fill + black outline stroke
  3. Auto-wrap long text and auto-size font
  4. Save to temp file for channel delivery

Chinese Text Support

Font resolution order:

  1. /System/Library/Fonts/PingFang.ttc (macOS)
  2. /usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc (Linux)
  3. Bundled fallback font

Custom Images

# From URL
python3 scripts/make_meme.py --image "https://example.com/photo.jpg" --top "顶部文字"

# From local file
python3 scripts/make_meme.py --image /tmp/photo.png --bottom "底部文字"

Template API

Browse templates: curl -s "https://api.imgflip.com/get_memes" | python3 -c "import sys,json; [print(f\"{m['id']}: {m['name']}\") for m in json.load(sys.stdin)['data']['memes'][:20]]"