summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2015-01-08 15:11:22 +0000
committerMatthew Hodgson <matthew@matrix.org>2015-01-08 15:11:22 +0000
commit7f83613733bc39a14b4eaff78313047d0fc50739 (patch)
tree4a61caad5d73170f61a486073c1bd8581ee02851
parentAdd raw query param for scrollback. (diff)
downloadsynapse-7f83613733bc39a14b4eaff78313047d0fc50739.tar.xz
make our JPEG thumbnail quality less horrifically ugly
-rw-r--r--synapse/media/v1/thumbnailer.py2
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)