changeset 2506:516bf5309517

plugin XEP-0054: removed Image.ANTIALIAS filter: Image.ANTIALIAS filter is not needed anymore in Pillow: http://pillow.readthedocs.io/en/3.0.x/releasenotes/2.7.0.html#default-filter-for-thumbnails
author Goffi <goffi@goffi.org>
date Thu, 01 Mar 2018 09:04:36 +0100
parents 8e770ac05b0c
children 4c45df43ea44
files src/memory/cache.py src/plugins/plugin_xep_0054.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/memory/cache.py	Wed Feb 28 18:28:39 2018 +0100
+++ b/src/memory/cache.py	Thu Mar 01 09:04:36 2018 +0100
@@ -70,7 +70,6 @@
         except IOError:
             log.warning(u"can't read cache at {}".format(cache_url))
             return None
-
         except pickle.UnpicklingError:
             log.warning(u'invalid cache found at {}'.format(cache_url))
             return None
--- a/src/plugins/plugin_xep_0054.py	Wed Feb 28 18:28:39 2018 +0100
+++ b/src/plugins/plugin_xep_0054.py	Thu Mar 01 09:04:36 2018 +0100
@@ -445,7 +445,7 @@
             return Failure(exceptions.DataError(u"Can't open image"))
 
         if img.size != AVATAR_DIM:
-            img.thumbnail(AVATAR_DIM, Image.ANTIALIAS)
+            img.thumbnail(AVATAR_DIM)
             if img.size[0] != img.size[1]:  # we need to crop first
                 left, upper = (0, 0)
                 right, lower = img.size