Skip to main content

DIY Meme with Ruby based, CLI Memegen

As in this 2012, we can see a lots of meme scattered on the internet, spoofs of some movies, pictures and others.

Meme's definition can be looked here

I found out meme generator from an internet search, you can download the copy from github:

https://github.com/cmdrkeene/memegen

It works fine with my Linux Mint 12, first you may need to clone the copy to your computer;

git clone https://github.com/cmdrkeene/memegen

The change directory to memegen;

cd memegen

After that you may need to satisfy the dependencies - check the Readme. Most likely you need to install some ruby based library. ImageMagick package is a must.

How it works? Well, you can execute from memegen/bin/memegen --help to see the flag.

If you find (of course you will) typing the path considered difficult, simply use PATH exports:

export PATH=$PATH:/$HOME/memegen/bin

-change accordingly.

Samples of outputs:



It has templates in memegenerator. But if you want to use your own pictures.

mkdir $HOME/.memegen

Put your file in $HOME/.memegen

najmi@vostro-mint:~/memegen$ ls ~/.memegen/
angrybird.jpg  aufa-code.jpg  unifi.jpg
   
najmi@vostro-mint:~/memegen$ memegen unifi "with unifi" "no more complaints on capped bandwidth"
/tmp/meme-1336404480.jpeg
 
najmi@vostro-mint:~/memegen$ memegen angrybird "mum is not here" "you can play angrybird dad"
/tmp/meme-1336404510.jpeg
 
najmi@vostro-mint:~/memegen$ memegen aufa-code "python is cool" "lemme do import antigravity"
/tmp/meme-1336404544.jpeg
 

So basically check your /tmp

Have Fun!!

Comments

Popular posts from this blog

Gue dengan S2 gue. Sronok banget!
Beijing and image manipulation addict Salam, Image manipulation with command line is fun and time consuming too. Given my Digikam plugins unable to work, I start to figure out many wonderful features of other tool which offer almost the same quality. However I was stucked with ImageMagick,with many tutorial on the net: Here and Here for i in *jpg ;do convert -font helvetica -fill white -pointsize 18 -draw 'text 10,50 "ACM-ICPC Beijing 2005"' $i $i;done The pix above shows a heater to heat up guest room during ACM-ICPC competition. (outside building's temperature is almost 4 celcious).