From f3a7dc9b809cd3e3f60ec7627c6d13f7df2bbdf7 Mon Sep 17 00:00:00 2001 From: iou1name Date: Mon, 11 Dec 2017 20:03:11 -0500 Subject: [PATCH] made resizing more accurate --- modules/ascii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ascii.py b/modules/ascii.py index bc9ef0d..9143e9e 100755 --- a/modules/ascii.py +++ b/modules/ascii.py @@ -40,7 +40,7 @@ def scale_image(image, maxDim=100): new_height = maxDim aspect_ratio = original_width/float(original_height) new_width = int(aspect_ratio * new_height) - image = image.resize((new_width, new_height)) + image = image.resize((new_width, new_height), Image.ANTIALIAS) return image