diff --git a/src/plugins/plugin_xep_0054.py b/src/plugins/plugin_xep_0054.py index 7f793118..71baf096 100755 --- a/src/plugins/plugin_xep_0054.py +++ b/src/plugins/plugin_xep_0054.py @@ -232,14 +232,14 @@ class XEP_0054(): return "" return filename - def _buildSetAvatar(self, vcard_set, filepath): + def _buildSetAvatar(self, vcard_set, filepath): try: img = Image.open(filepath) except IOError: raise exceptions.DataError("Can't open image") if img.size != (64, 64): - img.resize((64, 64)) + img = img.resize((64, 64)) img_buf = StringIO() img.save(img_buf, 'PNG')