aboutsummaryrefslogtreecommitdiffstats
path: root/bot/resources/spookifications.py
blob: 880b24e7b776eae321ad03a5c4dfa42e62009aa7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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