aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-11-12 13:35:41 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-11-12 13:55:00 -0600
commit0cf5b8ad2499a93fdba5ff1202fdc554208ec85f (patch)
tree1c1b38616ab58027853ebe8f753bd35d761c46b7
parent8bb3eb185ab14e8e8f4fc7b3df9eac4e1438d030 (diff)
downloadmediagoblin-0cf5b8ad2499a93fdba5ff1202fdc554208ec85f.tar.lz
mediagoblin-0cf5b8ad2499a93fdba5ff1202fdc554208ec85f.tar.xz
mediagoblin-0cf5b8ad2499a93fdba5ff1202fdc554208ec85f.zip
Don't force-convert resized images to JPEG.
That's just not nice for those of us who like transparency!
-rw-r--r--mediagoblin/process_media/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/process_media/__init__.py b/mediagoblin/process_media/__init__.py
index 2b9eed6e..85bdcbea 100644
--- a/mediagoblin/process_media/__init__.py
+++ b/mediagoblin/process_media/__init__.py
@@ -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