From 180d7ac7a71283b9d361b1bec734f671f7bc7059 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Tue, 26 Mar 2019 23:39:41 -0400 Subject: [PATCH] no dither --- ASCII/plugin.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index d608914..0c02686 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -284,14 +284,9 @@ class ASCII(callbacks.Plugin): h = w/scale # compute number of rows rows = int(H/h) - # check if image size is too small - if cols > W or rows > H: - print("Image too small for specified cols!") - exit(0) image = ImageOps.autocontrast(image) image = image.resize((cols, rows), Image.LANCZOS) image2 = image2.convert('RGBA') - image2 = image2.convert(mode="P", matrix=None, dither=Image.FLOYDSTEINBERG, palette=Image.ADAPTIVE) image2 = image2.convert('RGB') image2 = image2.resize((cols, rows), Image.LANCZOS) lumamap = np.array(image) @@ -382,14 +377,9 @@ class ASCII(callbacks.Plugin): h = w/scale # compute number of rows rows = int(H/h) - # check if image size is too small - if cols > W or rows > H: - print("Image too small for specified cols!") - exit(0) image = ImageOps.autocontrast(image) image = image.resize((cols, rows), Image.LANCZOS) image2 = image2.convert('RGBA') - image2 = image2.convert(mode="P", matrix=None, dither=Image.FLOYDSTEINBERG, palette=Image.ADAPTIVE) image2 = image2.convert('RGB') image2 = image2.resize((cols, rows), Image.LANCZOS) lumamap = np.array(image)