Giter Site home page Giter Site logo

meme2txt's Introduction

meme2txt

It's the utility you didn't you know you needed. Make memes right in your terminal.

Dependencies

In order to run, img2txt.py is required. In addition, toilet is recommended for quality memes. You can also use the docker container script meme2txt.docker in place of meme2txt to avoid downloading cruft (just be sure to release special characters in your arguments).

Usage

Usage:
  meme2txt <img2txt arguments> [--meme text column row [color]]
  • <img2txt arguments> will generally be <image path> --targetAspect=xx. See img2txt for comprehensive list of commands.
  • --meme renders text to the image.
    • text can be a multiline blob of text.
    • column the column number to start the text.
    • row the row number to start the text.
    • color one of (black|red|blue|green|yellow|grey|white). Defaults to black. To use the system default, use -.

Examples

Note for copyright reasons, the source images have not been provided- however I'm sure you can find even more robust memes out there.

Is this a good use of time?

meme2txt.sh ~/images/butterfly.jpg  --targetAspect=0.6 \
  --meme "Memes in terminal" 16 72 "-" \
  --meme "$(toilet "Is this productivity?" -fsmblock)" 35 12 black

Next level memes.

meme2txt.sh ~/images/blown.jpg --targetAspect=0.5 \
  --meme "Memes with resolution" 10 25 black \
  --meme "$(toilet "Memes in text" -fsmblock)" 25 5 blue

Nobody can tell me nothing.

meme2txt.sh ~/images/drake.jpg --targetAspect=0.5 \
  --meme 'Memes on twitter' 10 68 black \
  --meme "$(echo -e "Memes on\\n CMD" | toilet -fsmblock)" 28 65 red

Why yes. Yes, we do support toilet.

meme2txt.sh $image --targetAspect=0.5 \
  --meme "Using text" 9 68 black \
  --meme "$(echo -e "Using\n blocks" | toilet -fsmblock)" 24 66

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.