aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/8bitify.py
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-11-30 15:18:42 +0100
committerGravatar GitHub <[email protected]>2020-11-30 15:18:42 +0100
commit0ad849431eee3cab48485a132df23b0883142cf6 (patch)
treed9bd17fbd8f22c45e682079f6e3e565b6e17f61d /bot/exts/evergreen/8bitify.py
parent"adding xkcd feature" (diff)
parentMerge pull request #532 from python-discord/sebastiaan/ci/add-core-dev-approv... (diff)
Merge branch 'master' into issue-337
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: