matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Image pre- or post-processing #4724

Open grinapo opened 5 years ago

grinapo commented 5 years ago

Description: Did a brief test on the images hosted o nmy homeserver.

deltabeard commented 3 years ago

I would also like a post-processing capability added to Synapse. Even something as simple as calling a script or application with the file path of the image uploaded to the server given as a parameter would be good.

I'm having a problem where screenshots are being uploaded in lossless PNG format which are very large in size when said images contain many colours (eg. screenshots of gameplay). By adding post-processing, it would allow me to compress these images appropriately.