From: Christopher Allan Webber Date: Mon, 4 Jul 2011 20:40:05 +0000 (-0500) Subject: Set the jpeg quality at 90 for now... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=899d891692eeb7338adeedacafced7d026be933b;p=mediagoblin.git Set the jpeg quality at 90 for now... --- diff --git a/mediagoblin/process_media/__init__.py b/mediagoblin/process_media/__init__.py index 27f72b65..da3e887e 100644 --- a/mediagoblin/process_media/__init__.py +++ b/mediagoblin/process_media/__init__.py @@ -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 :)