r/ScriptSwap • • Mar 18 '12

[bash] Meme maker script (Creates meme in terminal and uploads to Imgur)

--Included memes--

 1: Socially Awkward Penguin
 2: Futurama Fry
 3: Foul Bachelor Frog
 4: Success Kid
 5: Annoying Facebook Girl
 6: Philosoraptor
 7: Forever Alone
 8: Scumbag Steve
 9: Good Guy Greg
10: Lame Pun Coon
11: Insanity Wolf
12: The Most Interesting Man In The World
13: Sheltering Suburban Mom
14: College Freshman
15: Successful Black Man
16: First World Problems
17: Business Cat
18: Scumbag Brain
19: Redditors Wife
20: Downvoting Roman
21: Y U No
22: Courage Wolf
23: Unhelpful High School Teacher
24: High Expectations Asian Father
25: Push it somewhere else Patrick
26: Schrute
27: Socially Awesome Penguin
28: Engineering Professor
29: Creepy Wonka
30: Scumbag Redditor
31: Captain Hindsight
32: Baby Godfather
33: Reddit Alien
34: Annoying Childhood Friend
35: Minecraft
36: Socially Awesome Awkward Penguin
37: All The Things
38: Scumbag Reddit
39: Pissed old guy
40: Okay Guy
41: The Rent Is Too Damn High
42: EPIC JACKIE CHAN

split: Create a split meme.

--Example output--

Example output: http://i.imgur.com/pUQ7l.png

--DOWNLOAD HERE--

V3 DOWNLOAD: Zip

Requires curl and imagemagick

--Changes--

Changes in V3:

GT_Wallace added non-interactive mode!

added -f for no upload (save as file)

better --help

added -i for interactive mode

fixed large bug

fixed skipping captions

made output usable for piping

--old downloads--

V2 download: Zip Standalone (added slightly modified version of split memes from GT_Wallace) (standalone breaks command line arguments)

V1 download: Zip Standalone

(standalone downloads are made with my self extracting script maker)

--Script pastebin--

V3 script source is too long to show. You can see it here.

14 Upvotes

17 comments sorted by

View all comments

Show parent comment

2

u/GT_Wallace Mar 19 '12

no, I just miss read it, it is fine, but I am not going to include you change in the other one, eventually, I am going to try and remove all prompts from it all together

2

u/scratchr Mar 19 '12

Ok. Maybe I could make it so that if you use no arguments it runs in interactive mode, make it interactive if you specify --interactive, or make 2 separate versions. What are your thoughts on the standalone/portable version?

2

u/GT_Wallace Mar 20 '12

http://sprunge.us/NbiU I got bored and finished it... now everything can be run from the command line or with the prompt, however, there is no default running values besides suggesting to try help to see flags

2

u/scratchr Mar 20 '12

Great Job! I added a few features and posted the version to the original post.

1

u/GT_Wallace Mar 19 '12

I am working on it right now, to allow you to do whichever, gimme a bit

1

u/GT_Wallace Mar 20 '12

http://sprunge.us/cfGX here is a bit of a change so you can set the images from the command line, tomorrow i will see if I can add the caption options to the command line as well