Skip to main content

CLI Meme Generator to automatically add whitespace and text to top

Project description

dankcli is a CLI Image Captioning Tool or Meme Generator which automatically adds white space and text to the top of your image.

Installation

$ pip install dankcli

Usage

$ python -m dankcli "path/to/image" "Meme text you want to add" [-f "final_image_name_without_extension"]

The text gets automatically wrapped according to width of image but you can also have intentional \n in your text. The image is saved in the current folder with the name as the current date and time, the name can be changed with the optional -f or --filename argument, specifying a file name without the file extension.

Example

Example 1 (showing \n functionality)

$ python -m dankcli "templates/yesbutno.jpg" "Mom at 2am: Are you awake?\n\nMe:"

turns this

to this

Example 2 (showing auto textwrap)

$ python -m dankcli "mymemes/helpmeme.jpg" "When you make a meme generator but now you can't stop making memes"

turns this

to this

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

dankcli-0.5.8.tar.gz (222.0 kB view details)

Uploaded Source

Built Distribution

dankcli-0.5.8-py3-none-any.whl (222.6 kB view details)

Uploaded Python 3

File details

Details for the file dankcli-0.5.8.tar.gz.

File metadata

  • Download URL: dankcli-0.5.8.tar.gz
  • Upload date:
  • Size: 222.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for dankcli-0.5.8.tar.gz
Algorithm Hash digest
SHA256 7da90c15e9637ba470948a5966ab5c6ae9eee8d2d004aa6c8e20c5d640d17dcb
MD5 212e5cae4aa947c05d8885a5a01d32c1
BLAKE2b-256 bd06cf2bdf279a0bb52b1f09a48d9ffb0df5eec0286ea61ea9fd3caeba0f734f

See more details on using hashes here.

File details

Details for the file dankcli-0.5.8-py3-none-any.whl.

File metadata

  • Download URL: dankcli-0.5.8-py3-none-any.whl
  • Upload date:
  • Size: 222.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for dankcli-0.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7a2315c65f8f6a4c8709fe8d2fbce80a6a01bf936e0dbc4b9b4acd047198156c
MD5 5d33fdff6c6250a736a681c75276d3df
BLAKE2b-256 03bb2bb4ac9afc438f01b4d31da6fdd35a7971a9a4f0f6d49dda4187246ab6e4

See more details on using hashes here.

Supported by

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