Use nearest neighbor instead of antialias.

This commit is contained in:
voussoir 2021-03-23 12:01:05 -07:00
parent 255b21ec57
commit abf3bef705
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -328,7 +328,7 @@ def chunk_to_image(chunk_data, scale=1):
image = rgb_to_image(chunk_to_rgb(chunk_data)) image = rgb_to_image(chunk_to_rgb(chunk_data))
if scale is not None and scale != 1: if scale is not None and scale != 1:
new_size = (int(image.size[0] * scale), int(image.size[1] * scale)) 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 return image
def chunks_to_image(chunks, scale=1): def chunks_to_image(chunks, scale=1):