From d96bbb49c8d4223fcdf18c6b96ac6d2901678416 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Wed, 20 Mar 2019 19:28:00 -0400 Subject: [PATCH] simplify more, makes a bit more colorful --- ASCII/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 8acc861..ab4fcf5 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -155,10 +155,10 @@ class ASCII(callbacks.Plugin): if cols > W or rows > H: print("Image too small for specified cols!") exit(0) - #image2 = image2.convert("P", dither=Image.FLOYDSTEINBERG, palette=Image.WEB) + image2 = image2.convert("P", dither=None, palette=Image.WEB) if image2.mode != 'RGBA': image2 = image2.convert('RGBA') - image2 = image2.resize((cols, rows), Image.LANCZOS) + image2 = image2.resize((cols, rows), Image.NEAREST) colormap = np.array(image2) # ascii image is a list of character strings aimg = []