Meme
A command line utility for creating image macro style memes
![Go report card](https://goreportcard.com/badge/github.com/PontusTideman/meme)
Requires Go v1.16+ to compile.
![](http://i.imgur.com/WP1TAzg.png)
Features
- Create memes from built-in templates
- Create memes from image URL's
- Create memes from local image files
- Supports drawing on animated gifs
- Supports intensifing images by shaking them slightly
- Supports adding the 'triggered' banner
- Resizes oversized images
- Automatically upload to imgur.com (when passed a client id)
- Works on Linux, Mac and Windows
Simple example
To create a meme use the following command. The image can be an built-in
template, a URL or the path to a local file.
meme -i brace-yourselves -t "brace yourselves|the memes are coming"
When the command finishes, the location of the newly generated meme is printed
to the terminal. This location can be overriden using the -o
flag.
Installation
- Install Go
- Run
go install github.com/PontusTideman/meme@latest
- Open up .zshrc or create a new one if you don´t have one.
- Add
export GOPATH="$HOME/go" export PATH=$PATH:$GOPATH/bin
- Run
source ~/.zshrc
in terminal after.
Automatic uploads
If you supply an imgur client id when invoking the command, the meme will
automatically be uploaded to imgur.com. To get a client
id, follow these steps.
- Create an imgur account
- Register this application for anonymous usage
- Once registered, you get a client id for use when invoking the command. See
meme -help
- Read the rate limits
Help
Run the following command for help and to list all of the available built-in templates.
meme -help
Other examples
meme -i brace-yourselves -t "brace yourselves|the memes are coming"
![Brace yourselves](http://i.imgur.com/Bn1ANs5.png)
meme -gif -i http://www.reactiongifs.com/r/trmp.gif -t "|when somebody mentions china"
![When somebody mentions china](http://i.imgur.com/0aV1nfo.gif)
meme -shake -i kirk-khan -t "|khaaaaan"
![khaaaaan](http://i.imgur.com/PpGTRvN.gif)
meme -trigger -i https://i.giphy.com/3o7abKGM3Xa70I7jCU.gif
![triggered](http://i.imgur.com/D1pYHmC.gif)
Built-in templates
To create a meme using one of the built-in templates, use one of the following
id's with the -i
flag. (You can also list these using the meme -help
command.)