Unverified Commit 2bb3f98e authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Prevent resizing on repeated save()

parent 1e4cebac
......@@ -44,6 +44,7 @@ class Photo(models.Model):
image = Image.open(image_path)
image.thumbnail(settings.PHOTO_UPLOAD_SIZE, Image.ANTIALIAS)
image.save(image_path, "JPEG")
self._orig_file = self.file.path
class Album(models.Model):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment