meme-generation

Generate meme PNG images from imgflip templates with Pillow text overlay.

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/vivekgoquest/hermes-agent-stable --skill meme-generation-vivekgoquest
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: meme-generation
Source: https://github.com/vivekgoquest/hermes-agent-stable/tree/main/optional-skills/creative/meme-generation
Command: npx skills add https://github.com/vivekgoquest/hermes-agent-stable --skill meme-generation-vivekgoquest

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Creating memes manually requires image editing software and template hunting. This Skill automates the entire process: it picks a fitting template, positions captions correctly, and renders a finished PNG file ready to share. ## Core Features & Use Cases - Curated Templates: 10 hand-tuned templates (Drake, This is Fine, Expanding Brain, and more) with precise text field positioning for each caption slot. - Dynamic Template Search: Access roughly 100 popular imgflip templates by name or ID, with automatic default text placement based on field count. - Custom Image Mode: Overlay captions on AI-generated or user-supplied images, with an optional black-bars layout for busy backgrounds. - Use Case: A user says "make a meme about deploying on Friday" — the Skill selects the this-is-fine template, writes short captions, runs the generator script, and returns a shareable PNG. ## Quick Start Use the meme-generation skill to create a meme about code review taking forever using the drake template.

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 arguments, 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.

What meme templates are available in the generator?▼

The generator includes 10 curated templates with hand-tuned text positioning, such as Drake, This is Fine, and Expanding Brain. It also supports roughly 100 popular imgflip templates searchable by name or ID using the --search flag.

Can I add text to a custom or AI-generated image?▼

Yes, use the --image flag with a local image path to overlay captions on any image. Add the --bars flag to place text in black bars above and below the image, which keeps captions readable on busy or detailed backgrounds.

Does the meme script work offline?▼

Template images and the imgflip template list are cached in scripts/.cache/ after the first download, so previously used templates work offline. Fetching new templates requires internet access to reach the imgflip API.

Why does meme text look wrong or overflow the image?▼

Text issues usually come from captions that are too long or a mismatch between caption count and template fields. Keep captions under 8-12 words and match the number of text arguments to the template's field count.