diff --git a/src/plugins/plugin_xep_0264.py b/src/plugins/plugin_xep_0264.py index 138891cd..17923717 100755 --- a/src/plugins/plugin_xep_0264.py +++ b/src/plugins/plugin_xep_0264.py @@ -36,6 +36,10 @@ try: except: raise exceptions.MissingModule(u"Missing module pillow, please download/install it from https://python-pillow.github.io") +# cf. https://stackoverflow.com/a/23575424 +from PIL import ImageFile +ImageFile.LOAD_TRUNCATED_IMAGES = True + try: from twisted.words.protocols.xmlstream import XMPPHandler except ImportError: