From a939e53e22d47e3aaa255fdf173b0a3a6ab6eab1 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 24 Nov 2013 18:59:07 +0200 Subject: [PATCH] antialias filter is painfully slow - using cubic filter instead --- src/mediafiles.py | 2 +- templates/main.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mediafiles.py b/src/mediafiles.py index df98a80..ab3ceb8 100644 --- a/src/mediafiles.py +++ b/src/mediafiles.py @@ -308,7 +308,7 @@ def get_current_picture(camera_config, width, height): if width >= image.size[0] and height >= image.size[1]: return jpg # no enlarging of the picture on the server side - image.thumbnail((width, height), Image.ANTIALIAS) + image.thumbnail((width, height), Image.CUBIC) sio = StringIO.StringIO() image.save(sio, format='JPEG') diff --git a/templates/main.html b/templates/main.html index d58bbf3..b5abb87 100644 --- a/templates/main.html +++ b/templates/main.html @@ -250,7 +250,7 @@ ? - + Streaming Resolution ? -- 2.39.5