aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/8bitify.py
diff options
context:
space:
mode:
authorGravatar Harold Karibiye <[email protected]>2020-09-28 03:37:32 +0100
committerGravatar GitHub <[email protected]>2020-09-28 03:37:32 +0100
commitaab900877e285aade1bc45966e9b029d5559f04e (patch)
treeaaaadb8f1f3a080604b15c728a7d17184d203e41 /bot/exts/evergreen/8bitify.py
parentsync Pipfile and Pipfile.lock (diff)
parentPR #458 Deps: update Pillow to 7.2 (diff)
Merge branch 'master' into minesweeper-contribution
Diffstat (limited to 'bot/exts/evergreen/8bitify.py')
-rw-r--r--bot/exts/evergreen/8bitify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/8bitify.py b/bot/exts/evergreen/8bitify.py
index 60062fc1..c048d9bf 100644
--- a/bot/exts/evergreen/8bitify.py
+++ b/bot/exts/evergreen/8bitify.py
@@ -14,7 +14,7 @@ class EightBitify(commands.Cog):
@staticmethod
def pixelate(image: Image) -> Image:
"""Takes an image and pixelates it."""
- return image.resize((32, 32)).resize((1024, 1024))
+ return image.resize((32, 32), resample=Image.NEAREST).resize((1024, 1024), resample=Image.NEAREST)
@staticmethod
def quantize(image: Image) -> Image: