Refactor image resize code, with better filenames (#261)
authorBrett Smith <brettcsmith@brettcsmith.org>
Sun, 18 Mar 2012 03:43:46 +0000 (23:43 -0400)
committerBrett Smith <brettcsmith@brettcsmith.org>
Sun, 18 Mar 2012 03:43:46 +0000 (23:43 -0400)
commit063670e9b42c94bb6c4cf5c2838ab67a62349822
tree09352fda73d6c130250f0856fb05cea241f7eea2
parent416b439fc883a570902edd094b44f310d66e849c
Refactor image resize code, with better filenames (#261)

The code to make thumbnail- and medium-sized images in processing.py is
pretty similar, so I rolled that out into a separate function that we call
with different arguments as appropriate.

The new function should work identically to the old code, except it saves
images with filenames based on the original filename, like
`foobar.medium.jpg` instead of just `medium.jpg`.  This fixes bug #261.
mediagoblin/media_types/image/processing.py