From: Calin Crisan Date: Sun, 24 Nov 2013 16:59:07 +0000 (+0200) Subject: antialias filter is painfully slow - using cubic filter instead X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=a939e53e22d47e3aaa255fdf173b0a3a6ab6eab1;p=motioneye-debian antialias filter is painfully slow - using cubic filter instead --- 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 ?