From ff7e540eb85b18051a972bb0e890bc83887c8b8b Mon Sep 17 00:00:00 2001 From: Joachim Tingvold Date: Tue, 5 May 2015 00:08:37 +0200 Subject: [PATCH] Thumbnail-method for both photo and video. --- scanner/PhotoAlbum.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py index 069e406..9cd42aa 100644 --- a/scanner/PhotoAlbum.py +++ b/scanner/PhotoAlbum.py @@ -296,8 +296,11 @@ class Photo(object): elif self._orientation == 8: # Rotation 90 mirror = image.transpose(Image.ROTATE_90) + image = mirror + self._thumbnail(image, original_path, thumb_path, original_path, size, square) + def _thumbnail(image, original_path, thumb_path, original_path, size, square): thumb_path = os.path.join(thumb_path, image_cache(self._path, size, square)) info_string = "%s -> %spx" % (os.path.basename(original_path), str(size)) if square: