diff options
| author | 2019-07-09 17:45:40 -0400 | |
|---|---|---|
| committer | 2019-07-09 17:45:40 -0400 | |
| commit | 9353a79753a2d5f9fb98fec21b2bd2e8e2248167 (patch) | |
| tree | 566d5876b7e9ae508b7af696ea18bc73b595e22c /bot/utils/halloween/spookifications.py | |
| parent | Relock Pipfile. (diff) | |
| parent | Changing id of terning4 to the correct one (diff) | |
Merge branch 'master' into dpy-1.2
Diffstat (limited to 'bot/utils/halloween/spookifications.py')
| -rw-r--r-- | bot/utils/halloween/spookifications.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bot/utils/halloween/spookifications.py b/bot/utils/halloween/spookifications.py index 390cfa49..69b49919 100644 --- a/bot/utils/halloween/spookifications.py +++ b/bot/utils/halloween/spookifications.py @@ -13,7 +13,6 @@ def inversion(im): Returns an inverted image when supplied with an Image object. """ - im = im.convert('RGB') inv = ImageOps.invert(im) return inv @@ -21,7 +20,6 @@ def inversion(im): def pentagram(im): """Adds pentagram to the image.""" - im = im.convert('RGB') wt, ht = im.size penta = Image.open('bot/resources/halloween/bloody-pentagram.png') @@ -37,7 +35,6 @@ def bat(im): The bat silhoutte is of a size at least one-fifths that of the original image and may be rotated up to 90 degrees anti-clockwise. """ - im = im.convert('RGB') wt, ht = im.size bat = Image.open('bot/resources/halloween/bat-clipart.png') @@ -55,7 +52,6 @@ def bat(im): def get_random_effect(im): """Randomly selects and applies an effect.""" - effects = [inversion, pentagram, bat] effect = choice(effects) log.info("Spookyavatar's chosen effect: " + effect.__name__) |