summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 02:49:26 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 02:49:26 -0400
commit319ac51d605625f458513971123e681634828318 (patch)
tree29b44f08b265631e41dcc22a25426d4a07eec471
parentHash tag back. Garbage collection. (diff)
downloadPhotoFloat-319ac51d605625f458513971123e681634828318.tar.xz
PhotoFloat-319ac51d605625f458513971123e681634828318.zip
Only gc if thumbing.
-rw-r--r--scanner/PhotoAlbum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py
index 4fd9f0d..eca1a84 100644
--- a/scanner/PhotoAlbum.py
+++ b/scanner/PhotoAlbum.py
@@ -128,11 +128,11 @@ 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"]:
return
+ gc.collect()
image = image.copy()
if square:
if image.size[0] > image.size[1]: