GithubHelp home page GithubHelp logo

memegenerator's Introduction

Udacity Learning Project

A Meme Generator Porject

For an overview of the Project, click here.

Requirements

  • Python = 3.8

Background

Python is well suited for solving both web and data problems. This project is based on building a service that demonstrates these domains. Quote data imported from different data types (PDF, DOCX, CSV, TXT). Then, the Strategy Object design pattern is used to write clean, modular code to handle these different file types. The application will resize images and overlay a quote onto the resized graphics. the application interface is throug a command line utility and a deployable web service.

Getting started

Make sure to have all dependencies installed

  • pip install flask
  • pip install pandas
  • pip install Pillow
  • pip install docx
  • pip install requests

for mac: called via subprocess to parse PDF.

  • brew install --cask pdftotext

pictures to be consumed by the application must be added to _data -> Photos

Structure

The project consist of the following files and modules:

  • _data: holdes the quote files and images
  • fonts: holdes the fonts used
  • MemeGenerator: Module that loads an image, resize it and overlays the image with a quote
  • QuoteEngine: Parse the quote files of type CSV, PDF, TXT and DOCX
  • templates: HTML templates
  • tmp: Used to store output data from image MemeGenerator and PDFImporter
  • static: images generated to be displayed on web
  • venv: Python environment

How to run

run python3 app.py to start the webpage run python3 meme.py ImagePath BodyQuote AuthorQuote to interface through the CLI. picute will be exported to tmp folder.

memegenerator's People

Contributors

badrelfarri 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.