From abf3bef705017197c00853825f15743c40482e50 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 23 Mar 2021 12:01:05 -0700 Subject: [PATCH] Use nearest neighbor instead of antialias. --- pixelcanvas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixelcanvas.py b/pixelcanvas.py index 768ecbf..80e8655 100644 --- a/pixelcanvas.py +++ b/pixelcanvas.py @@ -328,7 +328,7 @@ def chunk_to_image(chunk_data, scale=1): image = rgb_to_image(chunk_to_rgb(chunk_data)) if scale is not None and scale != 1: new_size = (int(image.size[0] * scale), int(image.size[1] * scale)) - image = image.resize(new_size, resample=PIL.Image.ANTIALIAS) + image = image.resize(new_size, resample=PIL.Image.NEAREST) return image def chunks_to_image(chunks, scale=1):