aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-09-24 09:11:41 +0000
committerGravatar Matteo Bertucci <[email protected]>2020-09-24 09:18:58 +0000
commit99f29fbb6a23da2e6a4a7fc15ce1d5c63988681d (patch)
tree78fc5281463bc50e54cdcf27c2b80a1a0667588f /bot/exts
parentUpdate pillow to 7.2 (diff)
8bitify: Use NEAREST to resize avatar.
It used to be the default, but it got changed in Pillow 7.0
Diffstat (limited to 'bot/exts')
-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: