From 1adf5dd916956546205cae0b7baa37f4faeaf5fa Mon Sep 17 00:00:00 2001 From: Joseph Hallett Date: Thu, 30 Jul 2015 13:18:57 +0100 Subject: [PATCH] Stopped images having their height halved when using blocky printing --- rainbowstream/c_image.py | 1 - 1 file changed, 1 deletion(-) diff --git a/rainbowstream/c_image.py b/rainbowstream/c_image.py index 87726bf..e4d4505 100644 --- a/rainbowstream/c_image.py +++ b/rainbowstream/c_image.py @@ -54,7 +54,6 @@ def image_to_display(path, start=None, length=None): i.load() width = min(w, length) height = int(float(h) * (float(width) / float(w))) - height //= 2 i = i.resize((width, height), Image.ANTIALIAS) height = min(height, c['IMAGE_MAX_HEIGHT']) -- 2.25.1