Add text caption to memes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
README.md
center-text.py
final.py
hello-world.py
image.jpg
impact.ttf
meme.py
text-outline.py
wrap-text.py

README.md

Meme caption generator

Add text captions (top and bottom) to images using command line

Bog post: http://blog.lipsumarium.com/caption-memes-in-python/

Install

  1. Clone this repository
  2. cd into the repo directory
  3. Run python meme.py images/Success-Kid.jpg "Top text here" "Bottom text here" out.jpg

This should create a out.jpg image with your caption.

Usage

python meme.py <imageFilePath> "<topCaption>" "<bottomCaption>" <outputFile>

Example:

python meme.py images/i-dont-always.jpg "i don't always make memes" "but when i do I use python" out.jpg

example result