Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: b12b9b5f by wurstsalat at 2021-12-11T23:46:13+01:00 Preview: Load truncated images
Fixes #10700
- - - - -
1 changed file:
- gajim/common/preview_helpers.py
Changes:
===================================== gajim/common/preview_helpers.py ===================================== @@ -34,6 +34,7 @@ from gi.repository import GstPbutils
from PIL import Image +from PIL import ImageFile
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.ciphers import Cipher @@ -44,6 +45,8 @@
log = logging.getLogger('gajim.c.preview_helpers')
+ImageFile.LOAD_TRUNCATED_IMAGES = True +
class Coords(NamedTuple): location: str
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/b12b9b5f7e809cd1fede087593257336b...