Giter Club home page Giter Club logo

meme's Introduction

MEME GENERATOR

Udacity Intermediate Python Nanodegree
Project 2
Mihaly Garamvolgyi
2022-09-27

Overview

Generate motivational memes that are images with quotes and author signatures.
User can supply their own image and quotes or can be generated randomly from the apps image and qoute directory.
Implementation is twofold: a CLI driven usage or through a web browser (Flask implementation)

Setting up and running

  1. Go to directory
  2. Create venv python -m venv venv
  3. Activate venv source venv/bin/activate or .\venv\Scripts\activate.bat on Windows
  4. Install requirements pip install -r requirements.txt

prerequisities

  • Python 3.10.5
  • pdftotext CLI application
  • required packages are listed in requirements.txt
  • Flask
  • web browser

command line

Run the meme.py with the following optional parameters:

  • path - original image
  • body - qoute text
  • author - quote author

flask app

Export app as a FLASK_APP and navigate to the ip address with a browser.

  1. navigate to the project directory
  2. run export FLASK_APP=app.py or set FLASK_APP=app.py on Windows
  3. run flask run --host 0.0.0.0 --port 3000 --reload
  4. Get the IP adress and port printed by Flask
  5. Access with a web browser

Sub modules

Quote Engine

Module for ingesting qoutes from a number of different file types. Individual ingestors are developed for CSV, TXT, DOCX and PDF files and are packaged into an ingestor module.

Meme Generator

Module for generating the memes. Uses python Pillow library for resizing and captioning images.

meme's People

Contributors

aktakukac avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.