This project is used to generate memes that consist of an image, a quote, and its author.
There are several ways to use this application:
- Generate a random meme from an existing set of pictures and quotes
- Supply a link to an image, a quote, and an author to generate your own meme
- Supply a path to an image, quote and author via the command line
Nothing to install except the pip dependencies.
Either start the web app via
flask run
or run from the command line:
python meme.py
For the command line, see
python meme.py --help
to get info on the arguments supported.
Entry point for the web app is app.py, for the command line it's meme.py. Built-in quotes are supplied in the ./_data folder, as well as pictures. Additional quotes can be put as pdf, word, csv, or txt - see examples on how to format them.
A quote is represented by the QuoteModel class, and quotes and images are put together by the MemeEngine. The make_meme method in MemeEngine returns a path to the generated file for further processing.
Two modules are available:
QuoteEngine: Ingests quotes and returns QuoteModels as representation. MemeEngine: Consumes quotes and images, generates a meme from them and puts it in specified folder.