Skip to content

laxmitimalsina/Meme-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Motivational Meme Generator

Introduction meme_generator_demo

Meme Generator overview

The goal of Meme Generator is to build a "meme generator" application, to generate memes dynamically that includes an image with a quote. It handles the quotes from different file formats.

Meme Generator has the following functionalities:

  • Interacts with a variety of filetypes
  • Loads quotes from a variety of filetypes(CSVs, PDF, Word Documents)
  • Loads, manipulates, and saves images
  • Has two user input interface- web service and command-line tool

How to run the program

The program can run in two ways. Before we run the program we need to create a virtual environment.

  • Navigate the root directory and create a virtual environment.$ python3 -m venv my_meme_env
  • Source activate the virtual environment $ source my_meme_env/bin/activate
  • Install all the dependencies from the requirements.txt $ pip install -r requirements.txt

Run from the command line

The meme.py has codes to run the application from the command line. It takes three optional arguments:

  • --path: Path to the image file
  • --body: Quote body to add to the image
  • --author: Quote author to add to the image

Add your own image and quote

  • To make your own custom meme add image to src/_data/DogQuotes folder and add quotes on src/_data/DogQuotes on any four file format PDF, csv, docx, txt
  • Add static folder and a tmp folder while using the application to save the generated meme

Run flask app

  • From root directory src run flask with the command $python app.py
  • "Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)" will be displayed on the terminal, use any browser to open the address.
  • Use the Random button to get meme automatically or Use the Creator button to make a meme on your own. Fill the form with the image URL, quote, and author.

Project Modules

  • Project has 2 modules
  • QuoteEngine -Loads quotes from variety of filetypes(CSVs, PDF, Word Documents, Textfile )
  • MemeGenerator-Has files to handel image captioning.

Each class and function has a docstring with details on arguments and return.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages