Skip to content

lipsumar/meme-caption

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Add text caption to memes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages