Mercurial > libervia-backend
diff src/plugins/plugin_xep_0054.py @ 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 | 0046283a285d |
children | 4001aa395a04 |
line wrap: on
line diff
--- 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