From 99f29fbb6a23da2e6a4a7fc15ce1d5c63988681d Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Thu, 24 Sep 2020 09:11:41 +0000 Subject: 8bitify: Use NEAREST to resize avatar. It used to be the default, but it got changed in Pillow 7.0 --- bot/exts/evergreen/8bitify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/evergreen/8bitify.py') 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: -- cgit v1.2.3