diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-06 21:12:51 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-06 21:12:51 -0400 |
commit | 2e017d0df3cca1000a45a869892b5f058f9d01e9 (patch) | |
tree | 2b7667892aa24018ea3a8959698b4c22889b60b1 /scanner/PhotoAlbum.py | |
parent | Redirect from zen photo urls. (diff) | |
download | PhotoFloat-2e017d0df3cca1000a45a869892b5f058f9d01e9.tar.xz PhotoFloat-2e017d0df3cca1000a45a869892b5f058f9d01e9.zip |
Polishing...
Diffstat (limited to 'scanner/PhotoAlbum.py')
-rw-r--r-- | scanner/PhotoAlbum.py | 5 |
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 |