Commits

Anonymous committed d57c870

Fixes seria

  • Participants
  • Parent commits 5f03f61

Comments (0)

Files changed (2)

                 float(image.size[1]) * (preview['width'] / float(image.size[0]))
 
             preview_file = image.resize((int(round(width)), int(round(height))), Image.ANTIALIAS)
-            preview_file.save(out, ext)
+            preview_file.save(out, ext.lstrip('.'))
             self.storage.save(preview_path, ContentFile(out.getvalue()))
 
     def delete_previews(self, name):
 
     for _ in xrange(10):
         filename += random.choice(alphabet)
-    filename += ext
+    filename += ext.lower()
 
     if storage.exists(filename):
         filename = gen_filename(name, storage)