summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pyggle3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pyggle b/bin/pyggle
index 5f41b27..a2e3348 100755
--- a/bin/pyggle
+++ b/bin/pyggle
@@ -370,9 +370,10 @@ class Thumbnail:
)
self.jpegname = jpegname
rotate_preview(jpegname, self.exif_tag)
- have_thumbnail.pop(self.jpegname, None)
except FileNotFoundError:
pass
+ elif have_thumbnail.pop(f".thumbnails/{thumb_filename}.p.jpg", None):
+ self.jpegname = f".thumbnails/{thumb_filename}.p.jpg"
if args.with_detail_page and 0:
self.average_color = im.resize((1, 1)).getpixel((0, 0))