aboutsummaryrefslogtreecommitdiffstats
path: root/bot/resources
diff options
context:
space:
mode:
authorGravatar hundredrab <[email protected]>2018-10-21 22:57:43 +0530
committerGravatar hundredrab <[email protected]>2018-10-21 22:57:43 +0530
commit595ea5439ec727285a5e9d9718fa56a24c15e0ff (patch)
tree668e7a2bc0ec132b3c84b018c10dcf4f87a86455 /bot/resources
parentFix issues related to spookyavatar cog. (diff)
Fix formatting and add docstrings.
Diffstat (limited to 'bot/resources')
-rw-r--r--bot/resources/spookifications.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/resources/spookifications.py b/bot/resources/spookifications.py
index aeb8388b..880b24e7 100644
--- a/bot/resources/spookifications.py
+++ b/bot/resources/spookifications.py
@@ -2,6 +2,10 @@ from PIL import ImageOps
def inversion(im):
+ """Inverts an image.
+
+ Returns an inverted image when supplied with an Image object.
+ """
im = im.convert('RGB')
inv = ImageOps.invert(im)
return inv