aboutsummaryrefslogtreecommitdiffstats
path: root/scanner/PhotoAlbum.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 02:43:54 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 02:43:54 -0400
commite11da0e96372bb04bf1f512ccb90e601e950fd0f (patch)
tree059507ee1609ae1a681ce01d228c35318a097fba /scanner/PhotoAlbum.py
parentGettin functional, baby (diff)
downloadPhotoFloat-e11da0e96372bb04bf1f512ccb90e601e950fd0f.tar.xz
PhotoFloat-e11da0e96372bb04bf1f512ccb90e601e950fd0f.zip
Hash tag back. Garbage collection.
Diffstat (limited to '')
-rw-r--r--scanner/PhotoAlbum.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py
index 023158f..4fd9f0d 100644
--- a/scanner/PhotoAlbum.py
+++ b/scanner/PhotoAlbum.py
@@ -4,6 +4,7 @@ import json
import os.path
from PIL import Image
from PIL.ExifTags import TAGS
+import gc
class Album(object):
def __init__(self, path):
@@ -127,6 +128,7 @@ class Photo(object):
pass
self._attributes[decoded] = value
def _thumbnail(self, image, thumb_path, size, square=False):
+ gc.collect()
thumb_path = os.path.join(thumb_path, image_cache(self._path, size, square))
print "Thumbing %s" % thumb_path
if os.path.exists(thumb_path) and file_mtime(thumb_path) >= self._attributes["DateTimeFile"]: