From 595ea5439ec727285a5e9d9718fa56a24c15e0ff Mon Sep 17 00:00:00 2001 From: hundredrab Date: Sun, 21 Oct 2018 22:57:43 +0530 Subject: Fix formatting and add docstrings. --- bot/resources/spookifications.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bot/resources') 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 -- cgit v1.2.3