X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Fc_image.py;h=ec0e47e5114dd278a561cf19ce1c3163913a7b25;hp=59e64b0c67c75e5ff75a579252d67a6f25bd8862;hb=f5677fb1d3a9e2aa06971500b2c244dcdbe43a3f;hpb=816e305ff47ca527c3629861b73068136bbfd6f0 diff --git a/rainbowstream/c_image.py b/rainbowstream/c_image.py index 59e64b0..ec0e47e 100644 --- a/rainbowstream/c_image.py +++ b/rainbowstream/c_image.py @@ -1,5 +1,4 @@ from PIL import Image -from functools import partial from os.path import join, dirname, getmtime, exists, expanduser from .config import * @@ -34,7 +33,7 @@ def image_to_display(path): width = min(w, int(columns) - 2 * IMAGE_SHIFT) height = int(float(h) * (float(width) / float(w))) height //= 2 - i = i.resize((width, height), Image.BICUBIC) + i = i.resize((width, height), Image.ANTIALIAS) height = min(height, IMAGE_MAX_HEIGHT) for y in xrange(height):