diff options
author | Matthew Hodgson <matthew@matrix.org> | 2015-01-08 15:11:22 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2015-01-08 15:11:22 +0000 |
commit | 7f83613733bc39a14b4eaff78313047d0fc50739 (patch) | |
tree | 4a61caad5d73170f61a486073c1bd8581ee02851 /synapse/media/v1 | |
parent | Add raw query param for scrollback. (diff) | |
download | synapse-7f83613733bc39a14b4eaff78313047d0fc50739.tar.xz |
make our JPEG thumbnail quality less horrifically ugly
Diffstat (limited to 'synapse/media/v1')
-rw-r--r-- | synapse/media/v1/thumbnailer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/media/v1/thumbnailer.py b/synapse/media/v1/thumbnailer.py index bc86efea8f..28404f2b7b 100644 --- a/synapse/media/v1/thumbnailer.py +++ b/synapse/media/v1/thumbnailer.py @@ -82,7 +82,7 @@ class Thumbnailer(object): def save_image(self, output_image, output_type, output_path): output_bytes_io = BytesIO() - output_image.save(output_bytes_io, self.FORMATS[output_type]) + output_image.save(output_bytes_io, self.FORMATS[output_type], quality=70) output_bytes = output_bytes_io.getvalue() with open(output_path, "wb") as output_file: output_file.write(output_bytes) |