forked-synapse/synapse/rest/media
Michael Telatynski e8ac9ac8ca
Fix /upload 500'ing when presented a very large image (#10029)
* Fix /upload 500'ing when presented a very large image

Catch DecompressionBombError and re-raise as ThumbnailErrors

* Set PIL's MAX_IMAGE_PIXELS to match homeserver.yaml

to get it to bomb out quicker, to load less into memory
in the case of super large images

* Add changelog entry for 10029
2021-05-21 18:31:59 +02:00
..
v1 Fix /upload 500'ing when presented a very large image (#10029) 2021-05-21 18:31:59 +02:00
__init__.py Move rest APIs back under the rest directory 2015-01-22 16:10:07 +00:00