aboutsummaryrefslogtreecommitdiffstats
path: root/bot/resources/spookifications.py
diff options
context:
space:
mode:
authorGravatar hundredrab <[email protected]>2018-10-21 22:52:15 +0530
committerGravatar hundredrab <[email protected]>2018-10-21 22:52:15 +0530
commit138bb28e9d1cfef8cab48d216e550efafcd85454 (patch)
treef1b811224c5ad71e8e8a38f100cb8c36217fbcdf /bot/resources/spookifications.py
parentAdd pillow to Pipfile. (diff)
Fix issues related to spookyavatar cog.
Diffstat (limited to 'bot/resources/spookifications.py')
-rw-r--r--bot/resources/spookifications.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/resources/spookifications.py b/bot/resources/spookifications.py
new file mode 100644
index 00000000..aeb8388b
--- /dev/null
+++ b/bot/resources/spookifications.py
@@ -0,0 +1,7 @@
+from PIL import ImageOps
+
+
+def inversion(im):
+ im = im.convert('RGB')
+ inv = ImageOps.invert(im)
+ return inv