aboutsummaryrefslogtreecommitdiffstats
path: root/scanner/PhotoAlbum.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-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")