-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Synapse failed to process uploaded images with python-pillow 10.0.0 #15873
Comments
Seems like Arch updated
I've downgraded |
Reopen this issue. (Link provided by q234rty) |
In case anyone else is wondering how to downgrade with
|
Replacing this line synapse/synapse/media/thumbnailer.py Line 134 in 670d590
with return self.image.resize((width, height), Image.LANCZOS) fixes this. For fellow arch users, that is in
|
Would you mind making a PR? |
Done. Ignore the first one, not sure why GitHub decided to open the PR against my own fork 😮💨 . |
Pillow 10 removes some deprecated constatns that are used in synapse, the issue is already fixed in upstream, see [1,2]. Moreover, synapse is incompatible with pydantic 2.0 [3]. [1] matrix-org/synapse#15873 [2] matrix-org/synapse#15876 [3] matrix-org/synapse#15858 Closes: https://bugs.gentoo.org/909644 Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Pillow 10 removes some deprecated constatns that are used in synapse, the issue is already fixed in upstream, see [1,2]. Moreover, synapse is incompatible with pydantic 2.0 [3]. [1] matrix-org/synapse#15873 [2] matrix-org/synapse#15876 [3] matrix-org/synapse#15858 Closes: https://bugs.gentoo.org/909644 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Sam James <sam@gentoo.org>
Description
When I'm trying to upload an image to a federated room or update the avatar of a room, synapse fails to process the image.
Steps to reproduce
Homeserver
chat.kimiblock.top
Synapse Version
1.85.2
Installation Method
Other (please mention below)
Database
Single PostgreSQL, never restored any backup nor ported from SQLite.
Workers
Single process
Platform
Running synapse on Arch Linux with PostgreSQL. System is up to date.
Using package
postgresql 15.3-2
matrix-synapse 1.85.2-1
from Arch's official repos.Configuration
Configurations related to media and messages:
Relevant log output
Anything else that would be useful to know?
It was working properly until I restarted synapse today.
Sending images in a room seems to be working fine.
The text was updated successfully, but these errors were encountered: