Skip to main content

meme-gen

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

来源信息

仓库
fuyuxiang/echo-agent
最近来源活动
2026年8月24日 06:42
检测到的 SKILL.md 语言
英语
星标
1,057
分支
27

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
meme-gen
description
Generate meme images with text overlays using Pillow. Pick templates or create custom image macros.
version
1.0.0
metadata
{"echo":{"tags":["Meme","Image","Fun","Creative","Social"],"requires":{"pip":"[Truncated]"}}}
# Meme Generator Create meme images with text overlays. ## Install ```bash pip install Pillow httpx ``` ## Script ```bash 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 | Template | ID | Use | |----------|-----|-----| | Drake | drake | Yes/No preference | | Distracted Boyfriend | distracted | Attraction comparison | | Change My Mind | changemymind | Strong opinion | | This is Fine | thisisfine | Chaos acceptance | | Two Buttons | twobuttons | Hard 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 ```bash # 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]]"`
在 GitHub 查看