Set the jpeg quality at 90 for now...
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 4 Jul 2011 20:40:05 +0000 (15:40 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 4 Jul 2011 20:40:05 +0000 (15:40 -0500)
mediagoblin/process_media/__init__.py

index 27f72b65d63c8ca4cb8350b2763dc29364007efb..da3e887ebdeb1b6ecb46e637cd5637134847824b 100644 (file)
@@ -54,7 +54,7 @@ def process_media_initial(media_id):
 
     thumb_file = mgg.public_store.get_file(thumb_filepath, 'w')
     with thumb_file:
-        thumb.save(thumb_file, "JPEG")
+        thumb.save(thumb_file, "JPEG", quality=90)
 
     """
     Create medium file, used in `media.html`
@@ -69,7 +69,7 @@ def process_media_initial(media_id):
 
     medium_file = mgg.public_store.get_file(medium_filepath, 'w')
     with medium_file:
-        medium.save(medium_file, "JPEG")
+        medium.save(medium_file, "JPEG", quality=90)
 
     # we have to re-read because unlike PIL, not everything reads
     # things in string representation :)