From 7293c64daa748cc2fad4d70d19baf6723d1aed09 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Wed, 27 Mar 2019 01:52:02 -0400 Subject: [PATCH] autocontrast color image --- ASCII/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 0c02686..4ecd48c 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -288,6 +288,7 @@ class ASCII(callbacks.Plugin): image = image.resize((cols, rows), Image.LANCZOS) image2 = image2.convert('RGBA') image2 = image2.convert('RGB') + image2 = ImageOps.autocontrast(image2) image2 = image2.resize((cols, rows), Image.LANCZOS) lumamap = np.array(image) colormap = np.array(image2) @@ -381,6 +382,7 @@ class ASCII(callbacks.Plugin): image = image.resize((cols, rows), Image.LANCZOS) image2 = image2.convert('RGBA') image2 = image2.convert('RGB') + image2 = ImageOps.autocontrast(image2) image2 = image2.resize((cols, rows), Image.LANCZOS) lumamap = np.array(image) colormap = np.array(image2)