Skip to main content

Use the commandline to create a simple text-above-image meme in the stlye of 9gag posts

Project description

**MakeAboveMeme**
A command-line tool to create a meme with an image and some text above. Above that a title, below that some tags, and below them a line with "x comments, y points". Everything is optional but it looks ugly without the image.
Here's an example made with version 0.2

``python makeAboveMeme.py -T "Thest of the Mhemery" -i "https://i.imgur.com/Y3w71er.jpg" --tag "global warming" --tag "earth chan" --tag "tags are traps" --tag "What the fuck" -c "other" -p 3
``
![invisible john cena](./docs/meme.png)

To view this readme in a better formatting, please refer to the github repo listed under home page.

**Installation and Dependencies**
Maybe `pip install MakeAboveMeme` works. If not, make sure the following dependencies are installed and perform `git clone https://github.com/lucidBrot/MakeAboveMeme.git ./MakeAboveMeme`.

* `sudo apt-get install xvfb` or your standard x-server running
* [webkit2png](https://stackoverflow.com/a/48537053/2550406)

**Execute**
`python makeAboveMeme.py -T "test title"`
`webkit2png temp.html -o meme.png -x 700 1000`

**Error Codes**
If everything goes fine, the default should be 0.
If something breaks unexpectedly, the default should be 1.
If the call to webkit2png breaks, the exit code is 2.

**Formatting**
Any html tags are sanitized away. You can use `\n` typed out, the newline character `\n`, or `<br>` for line breaks though.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MakeAboveMeme-0.5.4.tar.gz (384.7 kB view details)

Uploaded Source

File details

Details for the file MakeAboveMeme-0.5.4.tar.gz.

File metadata

  • Download URL: MakeAboveMeme-0.5.4.tar.gz
  • Upload date:
  • Size: 384.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for MakeAboveMeme-0.5.4.tar.gz
Algorithm Hash digest
SHA256 be596e8ef65bf732095e4231c0cef192b5eeaf59de32ebd64ddbcc2c47c2b1bd
MD5 19ce6b1069531c7283562c61f58136ac
BLAKE2b-256 a8347d6eef82384bf0e4e754022f3836aa64dffa59c65ee57ba8fa03fae7f5bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page