diff --git a/.gitignore b/.gitignore index a610b14..3c6a362 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ clientcred.secret usercred.secret run.sh corpus.txt +meme.jpg diff --git a/drake.jpg b/drake.jpg deleted file mode 100644 index 599b0d7..0000000 Binary files a/drake.jpg and /dev/null differ diff --git a/drakeout.jpg b/drakeout.jpg deleted file mode 100644 index 4028aa1..0000000 Binary files a/drakeout.jpg and /dev/null differ diff --git a/gen.py b/gen.py index 72de66d..79d4658 100644 --- a/gen.py +++ b/gen.py @@ -91,16 +91,16 @@ if random.randint(1, 3) == 2: badchoice = random.choice(bad) goodchoice = random.choice(good) - subprocess.run(args = ["convert", "drake.jpg", "-pointsize", "30", + subprocess.run(args = ["convert", "memes/drake.jpg", "-pointsize", "30", "-gravity", "center", "-draw", - "text 20,-150 '{}'".format(badchoice), "drakeout.jpg"]) + "text 20,-150 '{}'".format(badchoice), "meme.jpg"]) - subprocess.run(args = ["convert", "drakeout.jpg", "-pointsize", "30", + subprocess.run(args = ["convert", "meme.jpg", "-pointsize", "30", "-gravity", "center", "-draw", "text 20,50 '{}'".format(goodchoice), - "-quality", "10", "drakeout.jpg"]) + "-quality", "10", "meme.jpg"]) - media = "drakeout.jpg" + media = "meme.jpg" media_description = "A Drake meme. Drake is disgusted by {}, and is pleased by {}.".format(badchoice, goodchoice) else: