meme-generation

Generate meme images by overlaying text on imgflip templates with Pillow.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/xu1713/openhorse --skill meme-generation-xu1713
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: meme-generation
Source: https://github.com/xu1713/openhorse/tree/main/openhorse/openhorse/optional-skills/creative/meme-generation
Command: npx skills add https://github.com/xu1713/openhorse --skill meme-generation-xu1713

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Pillow, requests, and includes scripts (resource) components.

What problem does it solve? Creating memes usually requires opening an image editor or a meme website, but this Skill lets you produce real .png meme files directly from a conversation by picking a template and writing captions. ## Core Features & Use Cases - Classic Template Mode: Choose from 10 curated templates with hand-tuned text positioning (Drake, This is Fine, Expanding Brain, and more) or any of ~100 popular imgflip templates searchable by name or ID. - Custom AI Image Mode: Overlay captions on AI-generated images using direct overlay or black-bar text modes, with optional vision-based verification of legibility. - Use Case: A user says "make a meme about debugging production at 2 AM" — the Skill picks the this-is-fine template, writes short captions, and returns a rendered .png file ready to share. ## Quick Start Make a meme about choosing between writing tests and shipping straight to production.

Frequently Asked Questions about meme-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a meme image with Python?

Run the generate_meme.py script with a template ID, output path, and caption texts, for example: python generate_meme.py drake /tmp/meme.png "Writing tests" "Shipping to prod". The script downloads the template, overlays outlined text with Pillow, and saves a .png file.

What meme templates are available in this generator?

There are 10 curated templates with hand-tuned text positioning, including Drake, This is Fine, Expanding Brain, and Two Buttons. You can also use any of roughly 100 popular imgflip templates by name or ID, found via the --search flag.

Can I add text to my own image instead of a meme template?

Yes, use the --image flag with a path to your image, such as an AI-generated scene. Choose direct overlay mode for white text with black outline, or --bars mode to add black bars above and below the image for better readability on busy images.

Why does my meme text look bad or hard to read?

Long captions are the most common cause — keep each field under 8-12 words. The script auto-scales font size and wraps text, but if the image is visually busy, switch from overlay mode to --bars mode so text sits on solid black bars.

Does the meme generator work offline?

Template images are downloaded from imgflip on first use and cached in scripts/.cache/ as PNG files, so previously used templates work offline. Searching for new templates requires network access to the imgflip API.