Higher quality thumbs.

This commit is contained in:
Jason A. Donenfeld 2012-04-22 19:20:54 +02:00
parent 99b3118cce
commit 120b8846b7

View File

@ -260,7 +260,7 @@ class Photo(object):
gc.collect() gc.collect()
image.thumbnail((size, size), Image.ANTIALIAS) image.thumbnail((size, size), Image.ANTIALIAS)
try: try:
image.save(thumb_path, "JPEG") image.save(thumb_path, "JPEG", quality=88)
except KeyboardInterrupt: except KeyboardInterrupt:
os.unlink(thumb_path) os.unlink(thumb_path)
raise raise