aboutsummaryrefslogtreecommitdiffstats
path: root/scanner
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 03:19:20 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 03:19:20 -0400
commit9220ea44b5dd5e14f3ce3a4ae93f1b31561a93f8 (patch)
tree65a4862709f2f77694496242ce4f0371ab21b524 /scanner
parentOnly gc if thumbing. (diff)
downloadPhotoFloat-9220ea44b5dd5e14f3ce3a4ae93f1b31561a93f8.tar.xz
PhotoFloat-9220ea44b5dd5e14f3ce3a4ae93f1b31561a93f8.zip
Better cache. Better gc.
Diffstat (limited to 'scanner')
-rw-r--r--scanner/PhotoAlbum.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py
index eca1a84..33ea437 100644
--- a/scanner/PhotoAlbum.py
+++ b/scanner/PhotoAlbum.py
@@ -146,6 +146,7 @@ class Photo(object):
right = image.size[0]
bottom = image.size[1] - ((image.size[1] - image.size[0]) / 2)
image = image.crop((left, top, right, bottom))
+ gc.collect()
image.thumbnail((size, size), Image.ANTIALIAS)
try:
image.save(thumb_path, "JPEG")