Skip to content
Snippets Groups Projects
Commit 7f836137 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

make our JPEG thumbnail quality less horrifically ugly

parent b5924cae
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment