aboutsummaryrefslogtreecommitdiffstats
path: root/scanner/PhotoAlbum.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scanner/PhotoAlbum.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py
index ec227f9..18cd425 100644
--- a/scanner/PhotoAlbum.py
+++ b/scanner/PhotoAlbum.py
@@ -87,7 +87,7 @@ class Album(object):
return None
class Photo(object):
- thumb_sizes = [ (150, True), (640, False), (800, False), (1024, False) ]
+ thumb_sizes = [ (75, True), (150, True), (640, False), (800, False), (1024, False) ]
def __init__(self, path, thumb_path=None, attributes=None):
self._path = trim_base(path)
self.is_valid = True
@@ -192,6 +192,9 @@ class Photo(object):
def __str__(self):
return self.name
@property
+ def path(self):
+ return self._path
+ @property
def image_caches(self):
return [image_cache(self._path, size[0], size[1]) for size in Photo.thumb_sizes]
@property