Git Product home page Git Product logo

memegen's Introduction

memegen

An RMagick-based two-caption meme generator.

Profit

Install

You'll need ImageMagick installed. The easiest way is to use Homebrew.

brew install imagemagick

Then install the gem!

gem install memegen

Usage

To see a list of available images:

$ memegen --list
a_dog
p_obama
...

To generate an image:

$ memegen a_dog "Eat Crayons" "Poop Rainbows"
/tmp/meme-1234567890.jpg
$ 

You only have to supply one piece of text:

$ memegen a_dog "" "AWESOME"
/tmp/meme-1234567890.jpg
$

You can also use URLs for one time use memes:

$ memegen http://example.com/stupid.jpg "Generated" "From a URL"
/tmp/meme-1234567890.jpg
$

Adding your own images

You can add images to your local ~/.memegen folder:

$ ls ~/.memegen
my_custom_image.png

Upload to Campfire

If you have a Campfire account and token, you can automatically upload your image:

$ memegen a_dog "Hello" "Campfire world" --campfire

It will prompt you for your subdomain, token, and room name the first time.

Upload to Cloudapp

If you have Zach Holman's Cloudapp script, you can automatically upload your image to your Cloudapp account:

$ memegen y_u_no "WHY U NO" "USE CLOUDAPP" --cloudapp
Uploaded to http://cl.ly/3U2I3R2Z1X1I0q303N0I. 

You'll have to configure ~/.cloudapp first.

Bash completion

Source or copy script/autocomplete.sh inside ~/.bashrc to get image name autocompletion.

See also:

memegen --install-autocomplete

Contribute

Pull requests welcome!

memegen's People

Contributors

cmdrkeene avatar itsthomson avatar nakajima avatar

Stargazers

 avatar

Watchers

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