Don't force-convert resized images to JPEG.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 12 Nov 2011 19:35:41 +0000 (13:35 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 12 Nov 2011 19:55:00 +0000 (13:55 -0600)
That's just not nice for those of us who like transparency!

mediagoblin/process_media/__init__.py

index 2b9eed6e111a051afe1001262caa85c17305a9c7..85bdcbeab6803a8ef857a2e866402d7f3c097625 100644 (file)
@@ -136,7 +136,7 @@ def process_image(entry):
     thumb_file = mgg.public_store.get_file(thumb_filepath, 'w')
 
     with thumb_file:
-        thumb.save(thumb_file, "JPEG", quality=90)
+        thumb.save(thumb_file)
 
     # If the size of the original file exceeds the specified size of a `medium`
     # file, a `medium.jpg` files is created and later associated with the media
@@ -154,7 +154,7 @@ def process_image(entry):
         medium_file = mgg.public_store.get_file(medium_filepath, 'w')
 
         with medium_file:
-            medium.save(medium_file, "JPEG", quality=90)
+            medium.save(medium_file)
             medium_processed = True
 
     # we have to re-read because unlike PIL, not everything reads