From 138bb28e9d1cfef8cab48d216e550efafcd85454 Mon Sep 17 00:00:00 2001 From: hundredrab Date: Sun, 21 Oct 2018 22:52:15 +0530 Subject: Fix issues related to spookyavatar cog. --- bot/resources/spookifications.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bot/resources/spookifications.py (limited to 'bot/resources/spookifications.py') 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 -- cgit v1.2.3